CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 define date - 1 year

Print topic Send  topic

Author Message
jpser

Posts: 44
Posted: 08/19/2007, 3:05 AM

php 5:
in a search form startdate , enddate as textbox

how to define precisely, enddate = startdate + 1 year
and where to define such as when startdate changes , enddate is computed automatic

those 2 textboxes are parameters of a grid

( I prefer to use a javascript , php , or CCS function than a database function)
mktime ???
_________________
jp serei
View profile  Send private message
wkempees
Posted: 08/19/2007, 4:24 AM

CCDateAdd($date, value)
Value: year(s), month(s), day(s),........

$newdate = CCDateAdd($startdate, +1 Year);

It is in Common.php, search for it and analyze the function if questions
remain.

Walter



"jpser" <jpser@forum.codecharge> schreef in bericht
news:546c815edc4543@news.codecharge.com...
> php 5:
> in a search form sartdate , enddate as textbox
>
> how to define precisely, enddate = startdate + 1 year
>
> those 2 textboxes are parameters of a grid
>
> ( I prefer to use a php or CCS function than a database function)
> mktime ???
> _________________
> jp serei
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

jpser

Posts: 44
Posted: 08/19/2007, 5:08 AM

thank you very much for this quick and efficient answer

I just wonder why I cannot find this function in the help document ?

I shall try myself to help other users as soon as i get better
:-P :-P
_________________
jp serei
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.