(As a reply to everyone in this thread)
Quote:
>?Format$(Now,"#")
>You'll get 34125...Now try
>?Format$("03/01/96","#")
>Guess what...it's 34125. So,
>?Format$(Format(Now,"#"),"MM/DD/YY") results in 03/01/96.
>WONDERFUL...*THANK YOU* Microsoft...My accounting program is HOSED.
I get these results too. This is the code I used (I have Norwegian date
settings, so don't comment on the day preceeding the month):
Print Now
Print Format$(Now, "DD/MM/YYYY")
Print Format$(Now, "#")
Print Format$("01/03/1996", "#")
Print Format$(Format$(Now, "#"), "MM/DD/YYYY")
And these are the results:
Print Now: 29.02.96 12:52:50
Print Format$(Now, "#"): 35125
Print Format$("01/03/1996", "#"): 35125
Print Format$(Format$(Now, "#"), "DD/MM/YYYY"): 01.03.1996
What gives?
--
Newbiehood is not a period of time, it's a way of life.
http://www.sn.no/~balchen
ftp://ftp.sn.no/user/balchen/