DateTimeToStr() output YYYY/MM/DD HH:MM:SS?

Hello,

One of an output format for built-in function DateTimeToStr() is "YYYY-MM-DD HH:MM:SS".

ToolTip = DateTimeToStr(GetCursorXPosition(), mode=3);

Is it possible to output the following format?
YYYY/MM/DD HH:MM:SS

Using DateTimeFormat function:

ToolTip = DateTimeFormat( "%Y/%m/%d %H:%M:%S", GetCursorXPosition() );
2 Likes

You may use DateTimeFormat() function:


ToolTip = DateTimeFormat("%Y/%m/%d %H:%M:%S", GetCursorXPosition());

2 Likes