Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
PHP
2021-11-22 06:46:22
php sort time
strtotime();
Add solution
PHP
2021-11-22 06:42:19
date format change in laravel blade
date('d-m-Y', strtotime($user->from_date)); /** or **/ date_format($user->from_date,'D M Y')
Add solution
PHP
2021-11-21 18:54:20
age date de naissance php
function age($date) { $age = date('Y') - $date; if (date('md') < date('md', strtotime($date))) { return $age - 1; } return $age; }
Add solution
PHP
2021-11-19 15:59:18
php strtotime 1 day ago from
date('Y-m-d', strtotime('+1 day', strtotime($date)))
Add solution
PHP
2021-11-19 15:33:21
strtotime add 1 hour
$my_date_time = date("Y-m-d H:i:s", strtotime("+1 hours"))
Add solution
PHP
2021-11-19 04:50:27
date format with t and z php
str_replace('+00:00', '.000Z', gmdate('c', strtotime('2013-05-07 18:56:57')))
Add solution
PHP
2021-11-19 01:10:15
laravel blade date format
date('d-m-Y', strtotime($user->from_date)); /** or **/ date_format($user->from_date,'D M Y')
Add solution
PHP
2021-11-17 14:58:20
laravel form in 24 hours format
// 24-hour time to 12-hour time $time_in_12_hour_format = date("g:i a", strtotime("13:30")); // 12-hour time to 24-hour time $time_in_24_hour_format = date("H:i", strtotime("1:30 PM"));
Add solution
PHP
2021-11-17 13:34:15
php time difference in hours
$hourdiff = round((strtotime($time1) - strtotime($time2))/3600, 1);
Add solution
PHP
2021-11-16 05:19:14
date format change in laravel
date('d-m-Y', strtotime($user->from_date)); /** or **/ date_format($user->from_date,'D M Y')
Add solution
‹
1
2
3
4
5
6
7
8
9
10
11
12
13
›
Best helpers
daily
weekly
monthly
for 3 months
Peace LX
+5
Peter N
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.