Use something like:

<cfset myMonth = #lsdateformat(myDate, "mm")#>
<cfset myYear = #lsdateformat(myDate, "yyyy")#>

Then use the two vars myMonth and myYear to compare.....

I guess

James

-----Original Message-----
From: Julie Clegg [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2001 16:54
To: CF-Talk
Subject: CF function to manipulate a date





Hello,

I have a date field(myDate) in mmyyyy format.  I want to compare it to a 
another year field and to another month field.  How do I "string" out myDate

inorder to seperate the mm and yyyy section of it so I can compare each 
"section to a seperate month and year.

Thanks,

Julie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to