You are here: irt.org | BBS | Re: European dates & javascript [This BBS is closed]
Posted by Martin Webb on July 29, 1998 at 05:02:51:
In Reply to: European dates & javascript posted by Kassim on July 25, 1998 at 08:32:48:
: 25.07.98
: Anyone know how to convert American date format to european date format on a page using javascript. I have this site, where information gets displayed from an Access database to to a web page (i am using idc/htx/pws). I can do this easily in Cold Fusion, but bit of a prob in idc. I am not much into javascript & someone suggested that javascript could do that.
: Any ideas
: Thanks
Say for example the date was held as:
var myUSDate = "07.25.98";
Then to convert it you'd used:
var myEUDate = myUSDate.substring (0,1) + '.' + myUSDate.substring (3,4) + '.' + myUSDate.substring (6,7)
I've not tested this - so if its right first time then I'm gob smacked!
Follow-ups:
You are here: irt.org | BBS | Re: European dates & javascript [This BBS is closed]