将字符串06/12/2015 12:00 PM转换为日期格式JavaScript

时间:2015-06-07 02:12:52

标签: javascript time

如何在JavaScript中将字符串new Date('06/12/2015 12:00 PM')转换为日期格式(毫秒)。 invalid date给了我UIStoryboard *mainSB = [UIStoryboard storyboardWithName:@"SecondStoryboard" bundle:[NSBundle mainBundle]]; UITabBarController *rootTabBarController = (UITabBarController *)[mainSB instantiateInitialViewController]; dispatch_sync(dispatch_get_main_queue(), ^{ ... self.view.window.rootViewController = rootTabBarController;

1 个答案:

答案 0 :(得分:0)

查看Date.parse()

Date.parse('06/12/2015 12:00 PM');