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!

Y2K Difficulty (I know, I'm 3 years too late)

Status
Not open for further replies.

CestusGW

Programmer
Jul 2, 2002
55
CA
When using the File object under VB6, the DateLastModified and DateCreated properties return two digit year values. I've upgraded to SP5 for VB6, but this behaviour still persists. Is there any way I can extract the required 4 digit date from a file? (ie other methods under the FSO or File object, different object models etc) Greg W
wolgemga@aecl.ca
 
My OS is NT 4.0 SP6 (which should be Y2k compliant fs!) Greg W
wolgemga@aecl.ca
 
Greg,

It's your locale settings. Go into the control panel and open your "Regional Options". Select the Date tab and change the short date format to mm/dd/yyyy. Then run the program again. Now you should have a 4 digit year.

Those Microsoft guys are sneaky aren't they... building controls that look at the locale.
Snaggs
tribesaddict@swbell.net
Life can only be understood backwards; but it must be lived forwards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top