Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / PHP / Database Access / June 2008



Tip: Looking for answers? Try searching our database.

date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sim - 06 Jun 2008 02:44 GMT
how can i add two date or  can get next date by adding 10 day like
date()+10 in  date()+date() c, c++ or other lang.
J.O. Aho - 06 Jun 2008 07:24 GMT
> how can i add two date or  can get next date by adding 10 day like
> date()+10 in  date()+date() c, c++ or other lang.

strtodate("+10 days",time());

http://www.php.net/manual/en/function.strtotime.php

Signature

  //Aho

Jordan - 10 Jun 2008 16:16 GMT
>> how can i add two date or  can get next date by adding 10 day like
>> date()+10 in  date()+date() c, c++ or other lang.
>
> strtodate("+10 days",time());
>
> http://www.php.net/manual/en/function.strtotime.php

How can I setup Mysql date to something like this 'dd/mm/YYYY'?
I use Mysql v5.0

JD.
Captain Paralytic - 10 Jun 2008 16:51 GMT
> >> how can i add two date or  can get next date by adding 10 day like
> >> date()+10 in  date()+date() c, c++ or other lang.
[quoted text clipped - 7 lines]
>
> JD.

See the DATE_FORMAT() function in the manual

http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_dat
e-format

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.