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.

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
How can I convert a long datetime to Variant date? thanks.




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