I'm in the process of converting a timestamp generated by
var now = new Date().getTime();
which results in the timestamp 1349916512100.
I am looking to format the date as
\/Date(1349916512100)\/
in order to incorporate it into a JSON string. Currently, I am simply concatenating the \/Date
and \/
(as shown above), but I am wondering if there is a more efficient or correct method to achieve this?