I am using AHK script for text expansion and I've run into some problems with time stamps. Up to now I've been using only one time stamp (date, first one in the code), but after I added two more I messed up everything.
Code excerpt:
They generate:
While I would like them to generate:
What did I do wrong?
Code excerpt:
Code
:*::date::
FormatTime, CurrentDate,, yyyy-MM-dd ; This is one type of the date format
SendInput, %CurrentDate%
:*::st::
FormatTime, CurrentStartTime,, yyyy-MM-dd hh:mm:ss ; This is one type of the date format
SendInput, %CurrentStartTime% START
:*::ft::
FormatTime, CurrentFinishTime,, yyyy-MM-dd hh:mm:ss ; This is one type of the date format
SendInput, %CurrentFinishTime% FINISHThey generate:
Code
2016-04-172016-04-17, 09:51:55 START2016-04-17, 09:51:55 FINISH
2016-04-17 09:51:59 START2016-04-17 09:51:59 FINISH
2016-04-17 09:52:01 FINISHWhile I would like them to generate:
Code
2016-04-17
2016-04-17 09:51:59 START
2016-04-17 09:52:01 FINISHWhat did I do wrong?










