Hello every i have date field of type string with iso format like this: const date = \"2017-06-10T16:08:00: i want somehow to edit the string in the following format like th
If the date string is always in ISO format, you can also use regex to reformat without other library:
date.replace(/(\d{4})\-(\d{2})\-(\d{2}).*/, '$3-$2-$1')