I am having a datetime with timezone offset in a span.
The span looks like this -
<span class="timestamp">2014-09-22 08:30:25 +0530</span>
Now with date.js I can convert it to local timezone of the browser using -
var $date = Date.parse($('.timestamp').html());
console.log($date.toString('yyyy-MM-dd HH:mm:ss'));
which converts the original time(IST) to the browser's time zone.
How do I do the same thing using moment.js
Best Regards