Re: [PHP] date and time conversion

2005-09-11 Thread Burhan Khalid
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/da

Re: [PHP] Date and time

2004-08-11 Thread John Holmes
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 c

Re: [PHP] Date and time problem

2003-02-02 Thread Larry E. Ullman
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 un

Re: [PHP] Date and time problem

2003-02-02 Thread Tom Rogers
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 a

RE: [PHP] Date and time functions

2002-05-16 Thread David Freeman
> 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

Re: [PHP] Date and time functions

2002-05-16 Thread Miguel Cruz
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

RE: [PHP] Date and Time

2002-04-28 Thread John Holmes
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