
DMW>Actually, %@date[] is the only viable test for those using the European
DMW>codepage (dd-mm-yy).  There's plenty of people in this echo from "across
DMW>the pond".

DMW>REM * Start of UNIDATE.BTM
DMW>REM UniDate.Btm by Dave M. Walker, 1:396/1
DMW>set y=%@substr[%1,0,2]^set m=%@substr[%1,3,2]^set d=%@substr[%1,6,2]
DMW>iff %@date[1-13-80]==12 then^*date %m-%d-%y
DMW>elseiff %@date[80-1-13]==12 then^*date %y-%m-%d
DMW>elseiff %@date[13-1-80]==12 then^*date %d-%m-%y
DMW>endiff^unset y m d
DMW>REM * End of file

beautiful !

You can write a (little) program in ASM to get the country's date
format:

c:\>debug
-n getcdf.com
rcx
:200
-a
1140:0100 mov ax,3800
1140:0103 mov dx,200
1140:0106 int 21
1140:0108 mov ax,[200]
1140:010B mov ah,4C
1140:010D int 21
1140:010F
-w

return : 0 : US (mm-dd-yy) format
         1 : European (dd-mm-yy) format
         2 : Japanese (yy-mm-dd) format

