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

Date and Time Functions

To understand how ColdFusion functions work with dates, it's important to first understand the difference between dates and times that are treated as plain text, and more complex date/time objects.

So far in this book, dates and times have been treated simply as text. When a user types a date into a form, for example, I've thus far stored the entry exactly as the user types it. The date is stored in my database table as plain text, the same as any other text string. When I need to display the date later, I can use a formatting function such as DateFormat() to change the way it appears in my pages, but that's about it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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