Hi hs2,
That helped a lot. I'm puzzled though as to why I'm getting a different hour than the hour that shows up on my computer when I used the command _time('F'):
I'm getting 15 as the hour, when it's 10 in my computer clock.
_command cdate()
{
_str time = _time('F') // returns the date time in the format: 20161102151244019
// _insert_text(time);
// Format for time is YYYYMMDDhhmmssfff
_str yea = substr(time, 1, 4); // YYYY
_str mon = substr(time, 5, 2); // MM
_str day = substr(time, 7, 2); // DD
_str hou = substr(time, 9, 2); // hh
_str min = substr(time, 11, 2); // mm
_str sec = substr(time, 13, 2); // ss
_str mse = substr(time, 15, 3); // fff
say(yea); // 2016
say(mon); // 11
say(day); // 02
[b]say(hou); // 15 --> The hour seems wrong I have 10 am in my computer clock! [/b]
say(min); // 25
say(sec); // 20
say(mse); // 090
// _insert_text( getcdate( '-' ) );
}