On 9/06/2010 14:02, Mike Kear wrote:
If i set a variable which is a date object using the createdate() function, it reads the date properly. If I use that same function to set a setter in a bean, it doesnt. Here's the specifics: <cfset testdate = createdate("2010","06","10") > <p>Day: #day(testdate)#<br /> Month:#month(testdate)#<br /> Year: #year(testdate)#</p> This code shows year='2010', month='6', day='10' But if i have a bean with a date value in it, and set the date value like this: <cfset PosBean.setTransDate( createdate("2010","06","10") ) /> <p>Day: #day( posbean.getTransDate() )#<br /> Month:#month( posbean.getTransDate() )#<br /> Year: #year( posbean.getTransDate() )#</p> This code shows year='2010', month=10', day='6'
So the next bit to check is the typing of the attributes going onto the CFC/bean and return type, etc...
-- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.