Java date format to JavaScript date format

后端 未结 10 2109
余生分开走
余生分开走 2020-12-03 01:10

I would like to be able to convert a Java date format string, e.g. dd/MM/yyyy (07/06/2009) to a JavaScript date format string, e.g. dd/mm/yy (07/06/2009).

10条回答
  •  眼角桃花
    2020-12-03 01:19

    The javascript code in this page implements some date functions and they "use the same format strings as the java.text.SimpleDateFormat class, with a few minor exceptions". It is not the very same as you want but it can be a good start point.

提交回复
热议问题