如何在Clojurescript中的Date对象上调用.toDateString()

Hen*_*Zhu 3 javascript clojure clojurescript om reagent

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

我遇到麻烦因为(js/Date 1420971497471)返回一个字符串,所以我无法打电话.toDateString().

这是我的Clojurescript代码:

(.toDateString (js/Date 1420971497471)) 
// Uncaught TypeError: undefined is not a function
Run Code Online (Sandbox Code Playgroud)

myg*_*tar 7

(.toDateString (js/Date. 1420971497471)) 
Run Code Online (Sandbox Code Playgroud)