• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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. Valid dates must be in the range AD 100-9999. For information on how ColdFusion MX handles two-digit years, see CreateDate( ). Examples:

<cfoutput>
Now( ): #IsDate(Now( ))#<br>
04/15/2003: #IsDate('04/15/2003')#<br>
15/04/2003: #IsDate('15/04/2003')#<br>
13/13/2003: #IsDate('13/13/2003')#<br>
August 15, 2003: #IsDate('August 15, 2003')#<br>
15 Apr 2003: #IsDate('15 Apr 2003')#<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>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint