babu wrote:
Hi,
how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time format. I think the time is same as HH:MM:SS.
[EMAIL PROTECTED] ~ $ php -r 'echo
date(Y-m-d,strtotime(str_replace(.,/,12.12.05))).\n;'
2005-12-12
Hope that helps :)
See http://php.net/date
DIFF FanneHH wrote:
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7 days to this date. How can i do that?
echo
date('YmdHis',mktime(substr($a,8,2),substr($a,10,2),substr($a,12,2),substr($a,4,2),substr($a,6,2)+7,substr($a,0,4)));
Looks like a MySQL timestamp. If so, you
Hi,
Monday, February 3, 2003, 11:10:36 AM, you wrote:
DLM Hello friends.
DLM The follwing code displays the date on my webpage :
DLM echo date (l dS of F Y h:i:s A);
DLM However, I need to add 12 hrs to this date befor displaying on the webpage. Can
someone please help me to modify the above
echo date (l dS of F Y h:i:s A);
However, I need to add 12 hrs to this date befor displaying on the
webpage. Can someone please help me to modify the above code?
$t = time() + (12 * 60 * 60);
echo date (l dS of F Y h:i:s A, $t);
Larry
--
PHP General Mailing List (http://www.php.net/)
To
On Fri, 17 May 2002, DC wrote:
I am on the East Coast of Australia.
Do you know if by default if the date/time display will display only
East coast Australia time, or will display from the user's time zone? eg
Will USA users see the Australian time or their own time? Would this
cause a
I am on the East Coast of Australia.
I'm in central Queensland...
Do you know if by default if the date/time display will
display only East coast Australia time, or will display
from the user's time zone? eg Will USA users see the
Australian time or their own time? Would this
What version of PHP, OS, web server, etc are you running? Is that the
exact code you used? Did you try it in a file all by itself and did it
return the same result?
---John Holmes...
-Original Message-
From: baldey_uk [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 28, 2002 6:22 PM
7 matches
Mail list logo