Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date backwards? 1

Status
Not open for further replies.

ProgramError

Programmer
Mar 2, 2005
1,027
GB

Would anyone know why, if I type this in the immediate window
debug.? #25/06/08#
i get this returned ...
08/06/25
instead of 25/06/08
?


Ian Mayor (UK)
Program Error
9 times out of 10 I know what I'm talking about. This must be my tenth reply.
 
Because the immediate window looks for mm-dd-yyyy but returns dd-mm-yyyy.

?day(#01/07/2008#)
Ans: 7
 
Always use non ambiguous notations:
? #2008-06-25#

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Looks like you have your short date format set to yy/mm/dd in regional settings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top