$.date.parse

Parse method of date helpers

To be able to parse the custom date to the actual or javascript date, we need a helper to do that, that why this parse method born. This parse method can parse any date format that match with its arguments, this parse method only have 2 arguments which is custom date argument and date format argument, both of these argument are in string.

$date.parse('04-04-2021', 'DD-MM-YYYY')
//=> Sun Apr 04 2021 11:38:06 GMT+0700

Last updated