You can use the actual  functions built
into CF:

Month(myDate)
Year(myDate)

If you need a 4-digit Year:
DateFormat(myDate,"YYYY")

HTH


-----Original Message-----
From: Julie Clegg [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 11:54 AM
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