Convert Date from one format to another format in JavaScript

后端 未结 4 1498
说谎
说谎 2020-12-03 18:40

I have a string of a date in javascript in format #1. I need to convert it to format #2.

The problem starts when one format is \"dd/mm/yy\" and the other is \"mm/dd/

4条回答
  •  既然无缘
    2020-12-03 19:10

    It seems that you should use the library of query-dateformat git hub for jquery-dateformat
    or you can use the normal function like date-time-formate, use the library to config the formate template

提交回复
热议问题