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
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.
Are there any php built in functions , or need to convert them using regular
expressions.
thanks
babu
-
How much
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
Hi,
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7 days to this date. How can i do that?
Thanks
Home, no matter how far...
http://www.home.ro
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
Hello friends.
The follwing code displays the date on my webpage :
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?
Thanks
Denis
> 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
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
Hi all,
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 issue with timestamping an orde
2 6:22 PM
> To: Php-General
> Subject: [PHP] Date and Time
>
> Hi all,
>
> Anyone know any reason that the date function would return 2am in the
> morning as 102 if i use it in the following manner?
>
> $time=date("H:i:s");
> print $time;
>
>
&g
Hi all,
Anyone know any reason that the date function would return 2am in the
morning as 102 if i use it in the following manner?
$time=date("H:i:s");
print $time;
this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes
from? and why its there?
Cheers From
baldey_uk
--
Hi there,
Is there any one who could give me an idea regarding the date and time
triggering PHP script. This date and time script whould gives an output if
ever it hit "Jan 1" and print's it's year.
Any idea?
Thanks in advance, and also to all who keeps on helping a newbie like me.
Regards,
Hi,
Does anyone implement Date and Time Functions for PHP like MySQL?
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
I know there is already have functions for PHP, however it cannot
handle year expect it was between 1902 and 2037.
http://www.php.net/manual/en/ref.datetime.php
Regar
14 matches
Mail list logo