This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
/* 1/24/2011 james Moberg [email protected] | |
@param numberofChars, number of characters (Optional, 12 = default) | |
@param d, date/time string or object (Optional, now() = default) | |
@return Returns a yyyyMMddHHmmssll string (depending on length of numberofChars.) | |
Updated 20220903 to support millisecond */ | |
string function dateHash(numeric numberofChars=12, date=now()) hint="I convert a date object to yyyymmddHHmmssll" { | |
var response = ''; | |
if(not isvalid("date", arguments.date)) { | |
arguments.date = now(); |