> <cfset date1="02/08/2004"> 2nd August 2004 (in Australia)
> <cfset date2="12/08/2004"> 12th August 2004 (In Australia)

as strings, you actually might want to parse them (why the aversion to this
function?) first to make them cf datetime objects prior to doing whatever
w/them:

<cfscript>
dateStr="02/08/2004";
setLocale ("English (Australian)"); // mightily stupid locale name
ozDate=lsParseDateTime(dateStr);
setLocale ("English (US)"); // mightily stupid locale name
usDate=lsParseDateTime(dateStr);
writeoutput("
  raw date := #dateStr#
  <br />
  ozDate := #dateFormat(ozDate)#
  <br />
  usDate := #dateFormat(usDate)#
  ");
</cfscript>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to