convert date time to date function javascript
var date = new Date();
var readable_date = date.toDateString();
console.log(readable_date);
// Tue Jun 09 2020
convert date time to date function javascript
var date = new Date();
var readable_date = date.toDateString();
console.log(readable_date);
// Tue Jun 09 2020
convert a date into timestamp in javascript
//Explination
To get the unix timestamp using JavaScript you need to use the getTime()
function of the build in Date object. As this returns the number of
milliseconds then we must divide the number by 1000 and round it in
order to get the timestamp in seconds.
(new Date().getTime()/1000);
// Refrence : https://www.hashbangcode.com/article/convert-date-timestamp-javascript
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us