3

我正在尝试在 Clojurescript 中获取 DateString:new Date(1420971497471).toDateString();

我遇到了麻烦,因为(js/Date 1420971497471)返回一个字符串,所以我不能调用.toDateString().

这是我的 Clojurescript 代码:

(.toDateString (js/Date 1420971497471)) 
// Uncaught TypeError: undefined is not a function
4

1 回答 1

8
(.toDateString (js/Date. 1420971497471)) 
于 2015-01-11T17:40:41.200 回答