Hi,
I am doing some date formatting in my templates. I am using moment.js
however I am having an issue with assigns values.
<div><script type="text/javascript">document.write(moment("1989-02-22").format("Do MMMM YYYY")</script></div>
works fine. However, if I use an assigned value it does not display the date.
<div><script type="text/javascript">document.write(moment(<%= @date %>).format("Do MMMM YYYY")</script></div>
Any guidance will be appreciated.
Andrew