Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将常规日期(dd/mm/yyyy 或任何其他格式)格式从 Excel 导出/转换为 JavaScript 日期格式,如下所示:1136005200000(适用于 2005 年 12 月 31 日)。谢谢!
Function Tester() Dim sc As Object, o As Object Set sc = CreateObject("ScriptControl") sc.Language = "JScript" Debug.Print sc.Eval("new Date('12/31/2005')*1") End Function