in reply to ADO Date Problems
Use print $variant->Date('yyyy-MM-dd'); to format it however you'd like.
Add use Win32::OLE::NLS qw/:LOCALE :DATE/; and you can use any system formats, ie print $variant->Date(DATE_LONGDATE) will print something like "Thursday, December 19, 2002" - depending on the locale settings in Windows. If you need the time to print as well, import :TIME from the NLS module.
This is documented in ActiveState's help file (or perldoc Win32::OLE::Variant, if you prefer)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ADO Date Problems
by Anonymous Monk on Dec 20, 2002 at 17:37 UTC | |
by Solo (Deacon) on Dec 20, 2002 at 22:06 UTC |