How to compare two Dates of format DDMMYY?
;==========================================================================================================================================
;
; How to compare two dates of format "MMDDYY"?
;
;==========================================================================================================================================

strDateA = "051803" ; Change format to "YYMMDD" e. g. "051803" to "030518".
strDateB = "031004" ; Change format to "YYMMDD" e. g. "031004" to "040310".

intResult = StrCmp (StrSub (strDateA, 5, 2) : StrSub (strDateA, 1, 4), StrSub (strDateB, 5, 2) : StrSub (strDateB, 1, 4))

; intResult =  1  ==> strDateA is greater than strDateB.
; intResult =  0  ==> strDateA is equal to     strDateB.
; intResult = -1  ==> strDateA is less than    strDateB.

Exit
;==========================================================================================================================================