JQuery datetime formatter

Is there a working jQuery plugin (or javascript library) for formatting datetimes? I found some, but they were:

  • does not work with hours and minutes (one of datapicker)
  • not fully functional - cannot indicate the names of months, leading zeros, etc.
  • - This is just a piece of code written on some blog.

Of course, I can implement this, but it would be better to reuse it. I am looking for functionality similar to JavaSimpleDateFormat

+3
source share
4 answers

I wrote a JavaScript implementation of the format()Java method SimpleDateFormat: http://www.timdown.co.uk/code/simpledateformat.php

, , .

+4

date.js?

, , , .

..: Date.today().toString("d-MMM-yyyy HH:mm")

+2

Not sure if it meets all your requirements, but it looks good:

0
source

Source: https://habr.com/ru/post/1759684/


All Articles