Quarter
calculates and returns an integer (1-4) of the year quarter in which the date falls.
Quarter(date)
Parameter |
Description |
---|---|
date |
Any date. |
Year values 0 - 29 are interpreted as 21st century dates. Year values 30 - 99 are interpreted as 20th century dates.
When passing a date/time value as a string, enclose it in quotes. Otherwise, it is interpreted as a number representation of a date/time object.
<!--- This example shows the use of Quarter ---> <html> <head> <title> Quarter Example </title> </head> <body bgcolor = silver> <H3>Quarter Example</H3> Today, <cfoutput>#DateFormat(Now())#</cfoutput>, is in Quarter <cfoutput>#Quarter(Now())#</cfoutput>. </body> </html>