diff --git a/General-Functions.ahk b/General-Functions.ahk index ec8bdb2..835f6f2 100644 --- a/General-Functions.ahk +++ b/General-Functions.ahk @@ -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") +}