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:
:*::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% FINISH
They generate:
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 FINISH
While I would like them to generate:
2016-04-17
2016-04-17 09:51:59 START
2016-04-17 09:52:01 FINISH
What did I do wrong?