Quarter() - get quarter number from a date object Quarter.cfm <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Quarter function example: how to get quarter number from a date object</title> </head> <body> <h2 style="color:hotpink">Quarter Function Example</h2> <cfset MyDate=DateFormat(Now())> <cfoutput> <b> MyDate: #MyDate# <br /> Quarter Number[MyDate]: #Quarter(MyDate)# </b> </cfoutput> </body> </html> More ColdFusion examples CreateTimeSpan() - create a time span DateAdd() - add year, quarter, month, week, day, hour, minute, second to a date DateCompare() - compare two date time object DateDiff() - get difference between two date time object DateFormat() - format a date value using U.S. date format MonthAsString() - get th...
Android, .NET C#, Flutter, and Many More Programming tutorials.