By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,476 Members | 889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,476 IT Pros & Developers. It's quick & easy.

Mixed up Date

P: n/a
Hi All

Using the Now() command I am getting very strange results (bug like results
even)

In code I have the line
Dim x as string = now()
Which gives me:
"19/07/2004 8:25:57 PM"

Using the immediate window when I do
?now()
I get
#7/19/2004 8:26:06 PM#

Notice the month and day are reversed on the 2 commands? Anyone have any
idea why it is doing this???

Thanks

Lee
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Lee Trotter" <latrotter@@@sympatico.ca> scripsit:
Using the Now() command I am getting very strange results (bug like results
even)

In code I have the line
Dim x as string = now()
Which gives me:
"19/07/2004 8:25:57 PM"

Using the immediate window when I do
?now()
I get
#7/19/2004 8:26:06 PM#

Notice the month and day are reversed on the 2 commands? Anyone have any
idea why it is doing this???


The immediate window always uses US date/time format, regardless of
what format is selected in the system's date and time settings.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.