Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $start_Date='2016-06-02 18:00:13';
- $end_Date='2016-06-06 18:00:13';
- $start = Carbon::parse($start_Date);
- $end = Carbon::parse($end_Date);
- $now = Carbon::now();
- $length = $start->diffInDays($now);
- $lengthFromEnd = $end->diffInDays($now);
- $difference = $start_date->diff($end_date)->days;
- $start_Date='2016-06-02 18:00:13';
- $end_Date='2016-06-06 18:00:13';
- $absolute = false;
- $end->diffInDays($now, $absoute);
Add Comment
Please, Sign In to add comment