how to get timestamp in javascript of a date object . Updated on December 19, 2019 Published on November 17, 2019. For example, "2011-10-10" (date-only form), "2011-10-10T14:48:00" (date-time form), or "2011-10-10T14:48:00.000+09:00" (date-time … javascript by Graceful Gibbon on Aug 05 2020 Donate . We can get the timestamp with the getTime() method. An integer number representing the number of milliseconds that has passed since the beginning of 1970 is called a timestamp. The toUTCString() method is used to convert a Date object into a string, according to universal time. ABAP programmers can join date and time values stored in SAP tables to convert datetime to timestamp using ABAP code sample given in this tutorial. It’s a lightweight numeric representation of a date. The Javascript date can be converted to UTC by using functions present in Javascript Date object. In SAP, it is frequently seen that datetime values are stored as date and time parts seperately. How to get the timestamp in Javascript The standard string representation of a date time string is a simplification of the ISO 8601 calendar date extended format. Converting Timestamp to Date & Time in Javascript. The getTime() method returns the millisecond representation of the Date object and this post shows how to convert this to a UNIX timestamp. If you don’t intend to support