有谁知道如何以必需的格式dd.mm.yyyy解析日期字符串?
dd.mm.yyyy
See:(看到:)
Code:(码:)
var strDate = "03.09.1979"; var dateParts = strDate.split("."); var date = new Date(dateParts[2], (dateParts[1] - 1), dateParts[0]);
1.4m articles
1.4m replys
5 comments
57.0k users