L10n, Date.format and strftime
handgestrickt wanted to show formatted dates to the users of our AJAX-application. in PHP we use the handy function strftime() for this task, but in JavaScript you have to fiddle with the Date-object, which is not really practical. we searched the internet for some already prepared solution and tried several ones. the Date.format()- and strftime()-methods written by Dao Gottwald did the best job in our opinions. the usage is very easy. you take a given UNIX-timestamp, for example from MySQL or PHP and pass it to strftime() together with your format-string.

