Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string to date angular

  
let dateString = '02/05/2020';  
let momentVariable = moment(dateString, 'MM-DD-YYYY');  
let stringvalue = momentVariable.format('YYYY-MM-DD');   
console.log(stringvalue); // outputs 2020-05-02  

Source by www.cloudhadoop.com #
 
PREVIOUS NEXT
Tagged: #string #date #angular
ADD COMMENT
Topic
Name
7+1 =