Code: Select all
SendMode Input
!v::
inputTime := clipboard
RegRead, TZI, HKCU, Control Panel\International, iDate ;Get system user date format (0=dd/mm/yyyy, 1=dd/mm/yy, 2=yy/mm/dd)
; Convert input string to machine-readable value
inputTime := DateParse(inputTime,TZI) ; Specify either 0 or 1
FormatTime, inputTime, %inputTime%, ddd, MMM d, yyyy 'at' h:mm tt
;MsgBox, %inputTime%
Send, %inputTime%
Return