There's no real types in ColdFusion.  So, just treat the year as a string.

<cfset myyear=1990>
<cfset yy=right(myyear,2)>
<cfset century=left(myyear,2)>

The variables yy and century will automagically typecast back to integers if
you use them as integers.

Not quite sure what you're trying to do, but if it's contructing a date, you
could do it a lot easier with dateformat and createdate.

> -----Original Message-----
> From: Kris Pilles [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 11:11 AM
> To: CF-Talk
> Subject: Quick help
> 
> 
> I have a control year 
> I need to trim the first 2 digits off of it inorder to use 
> the last 2 in
> a date.... 
> 
> How can I do this?
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to