Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

readable date in javascript

var date = new Date();
console.log(date.toLocaleDateString()); // 4/23/2022
console.log(date.toDateString());       // Sat Apr 23 2022
console.log(date.toGMTString());        //Sat, 23 Apr 2022 13:24:55 GMT
Comment

PREVIOUS NEXT
Code Example
Javascript :: regex do not contain 
Javascript :: remove word from string javascript 
Javascript :: RegExp validation for password explained 
Javascript :: jquery get all title 
Javascript :: wait until foreach is done javascript 
Javascript :: javascript display block 
Javascript :: angular create project in current directory 
Javascript :: unix time to date javascript 
Javascript :: readonly attribute in html by javascript 
Javascript :: remove decimals javascript 
Javascript :: js remove object from array by value 
Javascript :: hide button using javascript 
Javascript :: express get full url 
Javascript :: capitalize first letter of every word javascript 
Javascript :: regex pattern for mobile number 
Javascript :: document delete element 
Javascript :: javascript image xss 
Javascript :: kendo angular grid date format 
Javascript :: discord javascript error cannot find module 
Javascript :: jquery get image src 
Javascript :: jquery select element with data 
Javascript :: how to use rgba in react native 
Javascript :: javascript select random element from array 
Javascript :: TypeError: date.getHours is not a function 
Javascript :: javascript add new array element to start of array 
Javascript :: regex to extract valid http or https 
Javascript :: javascript print subarray from index to indeex 
Javascript :: neo4j delete node by id 
Javascript :: componentdidmount hooks 
Javascript :: node list files in directory 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =