xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I need to pass a Win32 Date variant to a OLEobjct method.
Sadly, Win32::OLE doc don't tell me how translate date with time string into Date variant.
How can I convert a long datetime to Variant date? thanks.use Win32::OLE::Variant; print Variant(VT_DATE, '2000-01-01') # print 2000-01-01 print Variant(VT_DATE, '2000-01-01 10:00') #ditto
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How translate datetime in Win32::OLE
by ww (Archbishop) on Jul 03, 2010 at 11:59 UTC | |
by BrowserUk (Patriarch) on Jul 03, 2010 at 13:01 UTC |