Converting dates in YYYY-MM-DD to DD-MONTH in JavaScript

前端 未结 3 1096
清歌不尽
清歌不尽 2021-01-25 18:33

I have the following dates as strings..

2016-10-14
2016-10-15
2016-10-16
2016-10-17
2016-10-18
2016-10-19
2016-10-20

How can I dynamically conv

3条回答
  •  长发绾君心
    2021-01-25 19:06

    results=[]
    string=['2016-10-14', '2016-10-15', '2016-10-16', '2016-10-17', '2016-10-18', '2016-10-19', '2016-10-20']
    for(var i=0;i

提交回复
热议问题