AdobeStock_455007340

Specify Date Parts Correctly

Home » Specify Date Parts Correctly

DatePart() is used to extract specific parts of date values (the year, the hour, the weekday, and so on). Parts are specified using special identifiers (YYYY for year, H for hour, and W for weekday, and so on). These parts must be passed as strings (within quotes) or ColdFusion will not process the data as intended. (Applies to: ColdFusion All)

Leave a Reply