Proper way to use FormatTime ? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
WalkerOfTheDay
Posts: 710
Joined: 24 Mar 2016, 03:01

Proper way to use FormatTime ?  Topic is solved

23 Jan 2020, 07:32

Hi I am having trouble formatting a datestring into a different format.

I know I need FormatTime for this, but somehow it's not working properly for me.
I'm using the a DateTime gui control, which outputs for instance:20200623132517

When I try this:

Code: Select all

FormatTime, Leverdatum,, 'Leverdatum' dd-MM-yyyy '- ingevoerd om' HH'h'mm
The output for instance is: Leverdatum 23-01-2020 - ingevoerd om 12h22

So it converts the current date, not the date that is in the variable leverdatum.

What am I doing wrong ?

Edit, found it using another example from the forums:

FormatTime, Leverdatum, %leverdatum%, dd-MM-yyyy

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 270 guests