Name
IsDate
Synopsis
IsDate(string
)
Returns True
if the specified string can be
converted to a valid date/time object or False
if
it can’t. Examples:
<CFOUTPUT> Now( ): #IsDate(Now( ))#<BR> 08/15/1998: #IsDate('08/15/1998')#<BR> 15/08/1998: #IsDate('15/08/1998')#<BR> 13/13/1998: #IsDate('13/13/1998')#<BR> August 15, 1998: #IsDate('August 15, 1998')#<BR> 15 Aug 1998: #IsDate('15 Aug 1998')#<BR> August fifteenth, nineteen hundred ninety eight : #IsDate('August fifteenth, nineteen hundred ninety eight')#<BR> 7 p.m.: #IsDate('7 p.m.')#<BR> 7pm: #IsDate('7pm')#<BR> 19:00: #IsDate('19:00')#<BR> six thirty: #IsDate('six thirty')# </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.