YOu could use

<CFSET Monthpart = #Left(DateField,2)#>
<CFSET Yearpart = #Right(DateField,4)#>

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.


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