<cffunction
name="DateTimeFormat"
access="public"
returntype="string"
output="false"
hint="Formats the given date with both a date and time format mask.">
<cfargument
name="Date"
type="date"
required="true"
hint="The date/time stamp that we are formatting."
/>
<cfargument
name="DateMask"
type="string"
required="false"
default="dd-mmm-yyyy"
hint="The mask used for the DateFormat() method call."
/>
<cfargument
name="TimeMask"
type="string"
required="false"
default="h:mm TT"
hint="The mask used for the TimeFormat() method call."
/>
<cfargument
name="Delimiter"
type="string"
required="false"
default=" at "
hint="This is the string that goes between the two formatted parts (date and time)."
/>
<cfreturn (
DateFormat(
ARGUMENTS.Date,
ARGUMENTS.DateMask
) &
ARGUMENTS.Delimiter &
TimeFormat(
ARGUMENTS.Date,
ARGUMENTS.TimeMask
)
) />
</cffunction>