Snippet Name: Days in month one Description: Returns the number of days in the month for this month and this year. Also see:» Get Relative Dates and Times » Convert UK Dates To mySQL Format Dates » Calculate the difference between two t... » FUNCTIONS: date/time » Get Date 30 days ago » Perl SQL Update Example » SELECT: Select For Update » TO_DATE » UPDATE: Update a partitioned table » UPDATE: Update based on a record » UPDATE: Update Object Table » UPDATE: with RETURNING clause » UPDATE: Nested Table Update example » UPDATE: Correlated Update » UPDATE: Update from a SELECT statement » UPDATE: based on multiple returned val... » UPDATE: Update based on a query » UPDATE: Update multiple rows » UPDATE: update a specific record » UPDATE: Single row » Date Functions: NUMTOYMINTERVAL » Date Functions: NUMTODSINTERVAL » Date Functions: EXTRACT » Date Functions: TO_DSINTERVAL » Date Functions: TO_NCHAR » Date Functions: TO_YMINTERVAL » Dates: Oddball Stuff » Date Functions: Calculate elapsed time... » Date and Time Calculations: Get second... » Date: Find first day of the month Comment: (none) Language: PHP Highlight Mode: PHP Last Modified: March 16th, 2009
Description: Returns the number of days in the month for this month and this year.
Also see:» Get Relative Dates and Times » Convert UK Dates To mySQL Format Dates » Calculate the difference between two t... » FUNCTIONS: date/time » Get Date 30 days ago » Perl SQL Update Example » SELECT: Select For Update » TO_DATE » UPDATE: Update a partitioned table » UPDATE: Update based on a record » UPDATE: Update Object Table » UPDATE: with RETURNING clause » UPDATE: Nested Table Update example » UPDATE: Correlated Update » UPDATE: Update from a SELECT statement » UPDATE: based on multiple returned val... » UPDATE: Update based on a query » UPDATE: Update multiple rows » UPDATE: update a specific record » UPDATE: Single row » Date Functions: NUMTOYMINTERVAL » Date Functions: NUMTODSINTERVAL » Date Functions: EXTRACT » Date Functions: TO_DSINTERVAL » Date Functions: TO_NCHAR » Date Functions: TO_YMINTERVAL » Dates: Oddball Stuff » Date Functions: Calculate elapsed time... » Date and Time Calculations: Get second... » Date: Find first day of the month
<?PHP //return the number of days for this month and this year $ndays = DATE("t"); // You can also specify a date $ndays = DATE("t", MKTIME(0, 0, 0, 12, 1, 2004)); ?>