skip to main
|
skip to sidebar
Script 31
Your Script
Share your Script
Translate
Home
»
php
,
script31
» Looping date with php
Looping date with php
(Feb 20, 2011)
<?php
date_default_timezone_set('UTC');
$dates = '2010-01-01';
$end_dates = '2011-01-01'';
while (strtotime($dates) <= strtotime($end_dates)) {
echo $dates;
$dates= date ("Y-m-d", strtotime("+1 day", strtotime($dates)));
}
?>
Posted in Label:
php
,
script31
0 komentar:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search
Share this
Newest Script
Oops! Make sure JavaScript is enabled in your browser.
0 komentar:
Post a Comment