Re: Date format setting or system toggle options
By: echicken to Nightfox on Thu Jul 31 2014 11:02:30
if(strftime("%d/%m/%y") == system.datestr()) {
// Format in use is dd/mm/yy
} else {
// Format in use is mm/dd/yy
}
Or perhaps better:
var t = time();
var dmy = (strftime("%d/%m/%y", t) == system.datestr(t)) ? true : false;
Which is probably overly cautious, and you could just do:
var dmy = (strftime("%d/%m/%y") == system.datestr()) ? true : false;
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com