mercredi 3 juillet 2019

Get the available date range from Availabe date range array and Blocked date range array

I have 2 array one of them is having Available date range based on hotel and another array is room based that is having blocked date range. In last step i want to get the only available date range from 1st array.

Available date range array

enter image description here

Blocked date range array

enter image description here

Expected Result array

enter image description here

i tried using get both available array and merge them but failed and also its long process as i have blocked date range stored in my DB.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire