Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
PHP
2021-11-07 08:59:13
show 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 dat...
Add solution
PHP
2021-11-02 00:25:06
automatic years php
&copy; <?php echo date("Y"); ?>
Add solution
PHP
2021-11-01 23:50:14
php get next saturday
echo date("Y-m-d", strtotime("next Saturday"));
Add solution
Other
2021-10-29 12:52:10
1992-10-22T00:00:00.000Z
echo date('c'); //2021-02-03T21:42:51-08:00 echo date(DATE_ISO8601); //2021-02-03T21:42:51-0800 $datetime = new DateTime(); echo $datetime->format(DateTime::ATOM); //2021-02-03T21:42:51-08:00
Add solution
Other
2021-10-27 18:44:09
how to get seven days back date in ci
$date = strtotime("+7 day"); echo date('M d, Y', $date);
Add solution
PHP
2021-10-26 06:35:10
date add one day php
<?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-10-25 13:46:07
php get all the mondays of the year
$endDate = strtotime($endDate); for($i = strtotime('Monday', strtotime($startDate)); $i <= $endDate; $i = strtotime('+1 week', $i)) echo date('l Y-m-d', $i);
Add solution
Other
2021-10-24 10:52:10
ISO 8601
//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-10-23 02:02:13
add 7 days to date php
$date = "Mar 03, 2011"; $date = strtotime($date); $date = strtotime("+7 day", $date); echo date('M d, Y', $date);
Add solution
PHP
2021-10-21 15:50:06
loop through months and year php
$start = $month = strtotime('2009-02-01'); $end = strtotime('2011-01-01'); while($month < $end) { echo date('F Y', $month), PHP_EOL; $month = strtotime("+1 month", $month); }
Add solution
‹
1
2
3
4
›
Best helpers
daily
weekly
monthly
for 3 months
Michaeljt
+5
Andrei Petrenko
+5
Sudheesh
+5
Required
+5
Annedy
+5
Aesthetic_Bran
+5
F1234k
+5
Ann
+5
AndyP
+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.