> For the complete documentation index, see [llms.txt](https://tedirghazali.gitbook.io/algajs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tedirghazali.gitbook.io/algajs/date/date-parse.md).

# $.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
```
