$to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', '2015-5-5 3:30:34');
$from = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', '2015-5-6 9:30:34'); $diff_in_days = $to->diffInDays($from); print_r($diff_in_days); // Output: 1
Subscribe to:
Post Comments (Atom)
-
✅ Step-by-Step: Install PostgreSQL via EDB Installer (No Brew) 🔗 1. Download the Installer Go to the official PostgreSQL download page:...
-
A Comment system is a primary requirement for blog website or any tutorial website. in this post i want to share with you how to create co...
-
https://www.positronx.io/build-secure-php-rest-api-in-laravel-with-sanctum-auth/
No comments:
Post a Comment