Convert date to dd / MM / yyyy format in jQuery

I get the selected date in both the format Thu Oct 14 2010 00:00:00 GMT 0530 (India Standard Time). I want to convert this to a format dd/MM/yyyy. What to do in jQuery?

+3
source share
1 answer

if you want more powerful date formatting, you can use the date format function written by Stephen Levitan here

var date = dateFormat(new Date("Thu Oct 14 2010 00:00:00 GMT 0530 (India Standard Time)"), 'dd/mm/yyyy');
+8
source

Source: https://habr.com/ru/post/1770238/


All Articles