Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0

    You have a date, time, or both and you need to convert it to ...

    Use the dateDiff() function to do the conversion. If you are converting from local time, you'll first need to convert your date/time to GMT(Greenwich Mean Time) using dateConvert().

  2. Avg. Rating 5.0

    Creating a date/time object

    You can write the date/time value as a string, or use the createDate(), createTime(), createDateTime(), or createODBCDate() function depending on your specific needs.

  3. Avg. Rating 4.0

    You need to extract the day/month/year/hour/minute/second (D ...

    Use the datePart() function or one of ColdFusion's other functions for the corresponding date part you want to return such as hour(), minute(), second(), month(), day(), dayOfWeek(), week(), month(), quarter(), or year().

  4. Avg. Rating 3.5

    You need to determine the difference between two dates or ti ...

    Use dateDiff() to return the interval between two dates and/or times. The dateDiff() function is used to return the interval between two dates or times. The function takes three parameters, the interval for the comparison, and the two dates you want to compare.

  5. Not yet rated
  6. Not yet rated

    You have a string, such as user input, that you need to conv ...

    The parseDateTime() function, and its locale specific sibling LSParseDateTime() can be used to convert an arbitrary date/time string into a date/time object. Additionally, parseDateTime() (but not LSParseDateTime()) can be used to convert the supplied date/time from local time to GMT (Greenwich Mean ...

  7. Not yet rated

    You have two dates/times you want to compare.

    Use one of ColdFusion's comparison operators in an expression, or use the dateCompare() function.

  8. Not yet rated
  9. Not yet rated
  10. Not yet rated