setting a default date value to a date picker field is not so straightforward. as in, simply set a property for the CJuiDatePicker widget.
there are 2 ways to do it. these are based on some forum posts i found a while ago.
method 1 - give the attribut… more »
there are a few ways to calculate how many days between 2 given dates. the following examples calculates how many days to x'mas from today (19/2/10).method 1 using gregoriantojd($month, $day, $year) function to find out the julian day count. withou… more »
to get next month it should be as simple as:
date("n", mktime(0, 0, 0, $month + 1));
according to one of the comments in mktime, an incorrect month returns if the month you’re trying to get has less number of days than the current month.
to fix,… more »
notes and references on web development and various things.
disclaimers
this site does not guarantee accuracy of information provided. codes may not be tested, are provided as is and are free to to use. use at your own risk. limited or no support will be provided.
under no circumstances shall this site be responsible or liable for any damages or consequences as a result of direct or indirect usage of any information from this website.