convert any date format to yyyy-mm-dd in javascript





Converting any date format in MM/DD/YYYY format 2012-04-30.How can I convert a date value in ISO 8601 format to a date object in JavaScript? Since I have a edit functionality in my page and I also use I want to convert the date back to its original format so that chrome could recognize it. var date new Date(feed date in dd/mm/yyyy format) ("customerdate").val(date )

Copyright © 2018.