lundi 14 octobre 2019

Check date in Laravel 5.8

I am beginner in Laravel. I use in my project Laravel 5.8.

I have this code:

$dateFrom = '2019-10-14';
$dateTo = '2019-11-18';
  1. check if $ dateFrom and $ dateTo have the correct date format
  2. we will check if $ dateFrom is less than $ dateTo 3.we check whether the number of days between $ dateFrom and $ dateTo is less than or equal to 60

How can I make this?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/31iyRMB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire