I need to pass a VB Date object to a COM object using win32ole. I have
tried passing in a string (e.g. “2009/12/10 08:00:00”) and also
parsing a date string into a Ruby DateTime object, but the COM object
rejects it since it is not a VB Date object.
Any idea how I can create such an object from my Ruby code?
I get this error
#<WIN32OLERuntimeError: (in setting property ‘RangeStart’: )
OLE error code:80004005 in
Only date and integer types are allowed for RangeStart>