I want to format date/time variable in modscript
var dtmToday = Date();
However, I am not able to manipulate it into ISO format string. Where can I get help on the date/time function for ChaiScript?
Thanks in advance.
Re: I want to format date/time variable in modscript
Depending on the version of SBM you are on, ModScript has some great features for formatting dates. Take a look here, custom date formatting was added in 11.4. Combine this with TimeTNow(), a function for getting the current timestamp as a TimeT, and you can format a date in any format you like. The patterns for the format string are documented here.