I would do both the things that you state,
but I don't because of AHK v2 future compatibility.
Which changes the nature of SubStr,
and which requires both options in a ternary operator!
[EDIT:]
I'm still considering the best way to do this, perhaps:
Code: Select all
q::
vDay := vMonth := 1
vIsAhkV1 := (SubStr(A_AhkVersion,1,2) = "1.")
vMonth := SubStr("0" vMonth, vIsAhkV1-2)
vDay := SubStr("0" vDay, vIsAhkV1-2)
MsgBox % vMonth " " vDay
Return