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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CStr() returing dates in different formats

Status
Not open for further replies.

stevensteven

Programmer
Jan 5, 2004
108
0
0
CA
Can CStr() return dates in different formats?

Thanks for any help,

Steven
 
I'm looking to return my date in the format of MM/DD/YYYY as oposed to DD/MM/YY.

My system settings are also in MM/DD/YYYY but CStr and Format date also return it in the format DD/MM/YYYY.

Thanks for the help,

Steven
 
Try looking into setting the LCID, that may solve the issue with how the format is coming out of the FormatDate function (think Onpnt has a FAQ that xplain this better than I can).

-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top