Formats a date value using U.S. date formats. When formatting both date and time, use dateTimeFormat. For international date support, use lsDateFormat.
					
					dateFormat(date [, mask])
					
						→ returns string
					
				
							date.dateFormat([mask])
							
						
dd-mmm-yyEST (CF2016u3+).+0530 (CF2016u3+).+05+0530+5:30m/d/ymmm d, yyyymmmm d, yyyydddd, mmmm d, yyyy
						
						
					short, medium, long and full mask formats. Member function is available in CF11+.
									dateFormat("2015-04-11", "short")Expected Result: 4/11/15
dateFormat("2015-04-11", "long")Expected Result: April 11, 2015
dateFormat("2015-04-11", "full")Expected Result: Saturday, April 11, 2015
createDate( 2022, 10, 1 ).dateFormat( 'mm/dd/yyyy' )Expected Result: 10/01/2022
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.