generate date ordinals function
This commit is contained in:
@@ -594,6 +594,11 @@ CheckIfUpdateInstalled(PassedInArgument :=""){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; https://www.autohotkey.com/boards/viewtopic.php?t=59936
|
||||||
|
GetDateOrdinalSuffix(D) {
|
||||||
|
Static Special := {1: "st", 2: "nd", 3: "rd", 21: "st", 22: "nd", 23: "rd", 31: "st"}
|
||||||
|
Return D . ((S := Special[D]) ? S : "th")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user