I have some difficulties to implement this filter in mapboxGL-js

i have a vector tile layer that had some feature which include 2 properties 2 dates, startdate1 and enddate1 in string with the following format yyyy-mm-dd
I'd like to filter only the features that are between my specific date range, startDate2, endDate2 with the same format 

How can i get the date1 and date2, in order to call the javascript function **Date.parse(date1)** in order to compare it against my startDate ?

Id' like to apply the following condition in my filter to kepp only the features

```
Date.parse(startdate1)<= Date.parse(enddate2)  AND  Date.parse(enddate1) >= Date.parse(startdate2) 

```

Thanks for your help !