By giving you time with momentjs , you can try the moment.utc() method. The docs say:
Starting with version 2.0.0, the locale key can be passed as the third parameter to the moment () and moment.utc ()
moment('2012 juillet', 'YYYY MMM', 'fr'); moment('2012 July', 'YYYY MMM', 'en');
You can do a lot more with the utc () method.
moment.utc(); moment.utc(Number); moment.utc(Number[]); moment.utc(String); moment.utc(String, String); moment.utc(String, String[]); moment.utc(String, String, String); moment.utc(Moment); moment.utc(Date);
ilter source share