Format(Date, "yy") - 1) (1 Viewer)

Haynesey

Registered User.
Local time
Today, 23:35
Joined
Dec 19, 2001
Messages
190
Hi,

I need to use the following code to present the previous year (2006 for example) in the format 06. However, the code misses the 0 off the front.

Format(Date, "yy") - 1)

Any ideas?

Thanks

Lee
 

Haynesey

Registered User.
Local time
Today, 23:35
Joined
Dec 19, 2001
Messages
190
Thanks that worked great!

Cheers

Lee
 

llkhoutx

Registered User.
Local time
Today, 17:35
Joined
Feb 26, 2001
Messages
4,018
Format(DateAdd("d", -365, date), "dd") or something like that. The year subtracting is better.

There are numerous date manipulations and functions. If you don't find what you want on this forum use Google.
 

Users who are viewing this thread

Top Bottom