VT_DATE Data Type

To pass a VT_DATE type input to a Visual Basic® program, use the MATLAB® class COM.date. For example:

d = COM.date(2005,12,21,15,30,05);
     Value: 7.3267e+005
    String: '12/21/2005 3:30:05 PM'

Use the now function to set the Value property to a date number:

d.Value = now;

COM.date accepts the same input arguments as datenum.