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!

Cdate Conversion Problem

Status
Not open for further replies.

gahess

Programmer
Apr 1, 2002
2
CR
Hello!,

I having a lot of trouble while type casting an string into a date. Consider this code:

Dim d
d = "01/01/2001"
Response.Write "The Date: " & cdate(d)

The weird thing is that Intedev writes back: "The Date: 1/1/aaaa". It seems to me that this is a locale problem, (because my machine uses an spanish configuration). How can I solve this ?

Thanks in advance!!

PD. I already tried to initialize the Session object with the desired LCID with no benefits.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top