reverse a date in javascript

Solutions on MaxInterview for reverse a date in javascript by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "reverse a date in javascript"
Elena
29 Jan 2020
1function convertDigitIn(str){
2   return str.split('/').reverse().join('/');
3}
4