Closed ramprakash-ravi closed 9 years ago
var dateUnix = local_date.unix();
var dateUnixUTC = local_date.unix();
These two lines are doing the exact same thing, so it makes sense that you will get the same result.
Anyway, this is not the place for moment.js related questions. Please use the official moment.js repository for moment.js related issues / questions. You can also ask on stackoverflow.
I'm trying to get unix timestamp and UTC converted for same for date using moment. But i'm getting same local values for both: