I have a date in the following format: 1424102400000 , that is, an integer value. (I do not know how to say the name of this format). Home I need to convert it to presentable value to the user, so far so good. I'm using the toUTCString () method and I can also use momentjs . So the previously displayed value is the same as Mon, 16 Feb 2015 16:00:00 GMT . Home The issue is that such a value presented to the user can be changed and then I need to convert it back to an integer value similar to the one I initially submitted (of course the value will be different if the user has made a change). Home Can someone help me? Home See this Fiddle , values do not beat!