$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)
-
Vuetify is a popular UI framework for Vue apps. In this article, we’ll look at how to work with the Vuetify framework. Color Picker Inputs W...
-
In today’s software development landscape, APIs (Application Programming Interfaces) are essential for enabling communication between differ...
-
concat() join() fill() includes() indexOf() reverse() sort() splice() at() copyWithin() flat() Array.from() findLastIndex() forEach() every(...
No comments:
Post a Comment