Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
PHP
2022-03-22 07:00:01
php default timezone
echo date_default_timezone_get(); //UTC //Read more at https://www.php.net/manual/en/function.date-default-timezone-get.php
Add solution
PHP
2022-03-06 11:35:10
convert am pm time to 24 hour in php
echo date("H:i:s", strtotime("04:25 PM"));
Add solution
PHP
2022-03-01 09:45:11
récupérer la date php
<?php // Use date(); echo date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm echo date("m.d.y"); // 03.10.01 echo date("j, n, Y"); // 10, 3, 2001 echo ...
Add solution
PHP
2022-02-16 04:45:10
php date strtotime format
$date = '25/05/2010'; $date = str_replace('/', '-', $date); echo date('Y-m-d', strtotime($date));
Add solution
PHP
2022-01-30 20:10:04
strtotime format
$date = '25/05/2010'; $date = str_replace('/', '-', $date); echo date('Y-m-d', strtotime($date));
Add solution
PHP
2022-01-23 04:20:26
ISO 8601 php
//Object Oriented Method $datetime = new DateTime('2010-12-30 23:21:46'); echo $datetime->format(DateTime::ATOM); // Updated ISO8601 //Procedural Method echo date(DATE_ISO8601, strtotime('2010-12-30 23:21:46'));
Add solution
PHP
2021-12-23 17:11:18
php month single digit
echo date("n", $date); //echo month without leading 0, ie: 1,2,3,4,5,6,7,8,9,10,11,12
Add solution
PHP
2021-11-14 13:22:10
time function in php
<?php /* Unix Timestamp */ $timestamp = time(); echo $timestamp . "<br>"; echo date("d/m/Y", $timestamp); ?>
Add solution
PHP
2021-11-09 23:30:20
php add days to date
<?php // PHP program to add days to $Date // Declare a date $date = "2019-05-10"; // Add days to date and display it echo date('Y-m-d', strtotime($date. ' + 10 days')); ?>
Add solution
PHP
2021-11-09 19:51:35
how to get the list of available timezones in php
echo date_default_timezone_get(); //UTC //Read more at https://www.php.net/manual/en/function.date-default-timezone-get.php
Add solution
‹
1
2
3
4
›
Best helpers
daily
weekly
monthly
for 3 months
John Gotti
+5
Rookie
+5
Jagoda Tajchert
+5
Jeffrywith1e
+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.