Is there a working jQuery plugin (or a javascript ‘library’) for formatting datetimes? I found some, but they were:
- not working with hours and minutes (the one from datapicker)
- not fully functional – can’t give you names of months, leading zeroes, etc.
- are just a piece of code written in some blog.
Of course I can implement it, but it’d be better to reuse one. I seek functionality similar to Java’s SimpleDateFormat
I’ve written a JavaScript implementation of the
format()method of Java’sSimpleDateFormat: http://www.timdown.co.uk/code/simpledateformat.phpThe code is a few years old and I’d do it a bit differently now, but it’s well tested and works.