TAC has asked for the wisdom of the Perl Monks concerning the following question:
I have run into a little problem and I could really use some wisdom to help figure this out. I have a script that uses ADO to execute a stored procedure. It returns a result set that I piece apart and stick into a hash. I have noticed that a date field comes back in a different formats based on the operating system that I run the application. On Win2k it comes back as "mm/dd/yyyy HH:MM:SS" and on NT it comes back as "yy/mm/dd HH:MM:SS". This causes some issues because I need to interrogate the date to perform some calculations to see if an entry in the table has expired. Does anyone have any idea how I can force the date to be in a certain format? I would much rather have Perl or the operating system figure this out so I can port this without having to change code.
Thanks,
Tom
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ADO and date formats.
by myocom (Deacon) on Aug 22, 2001 at 21:41 UTC | |
Re: ADO and date formats.
by jehuni (Pilgrim) on Aug 23, 2001 at 00:09 UTC | |
Re: ADO and date formats.
by MZSanford (Curate) on Aug 22, 2001 at 19:37 UTC |