When converting from COM to Lua, the default behavior is to transform DATE values to strings formatted according to the current locale. The converse is true: LuaCOM converts strings formatted according to the current locale to DATE values.
The script can change the conversion from strings to tables by setting the DateFormat
field of the luacom table (the LuaCOM namespace) to the string "table". The table
will have Day, DayOfWeek, Month, Year,
Hour, Minute, Second, and Milliseconds fields. To return the conversion
to strings, set the DateFormat field to "string".