I want to parse dates (string date format to javascript date format), but I have various string date format like YYYY-MM-DD, DD-MM-YYYY and 'DD/MM/YYYY' and so..
Is there any generic procedure or way to convent from these string date format to javascript date format?
Here
userFormatstring could be in these format'DD-MM-YYYY','YYYY-MM-DD','DD/MM/YYYY'etc..