Mike,

This generated code looks like it is causing you problems. As the bean converts the date to a string for storage, when it retrieves it back CF does a String > Date conversion which is something i've always seen problems with.

A quick hack would be to alter the cfreturn from

<cfreturn variables.instance.TransDate />

to something like

<cfreturn CreateDate(ListLast(variables.instance.TransDate, "/"), ListGetAt(variables.instance.TransDate, 2, "/"), ListFirst(variables.instance.TransDate, "/"))>

To ensure there is no ambiguity. If that works ok, then you could look for a neater solution.

Phil




On 9/06/10 2:15 PM, Mike Kear wrote:
This is the code for the getter and setter involved:

<cffunction name="setTransDate" access="public" returntype="void" output="false">
<cfargument name="TransDate" type="string" required="true" />
<cfif isDate(arguments.TransDate)>
<cfset arguments.TransDate = dateformat(arguments.TransDate,"DD/MM/YYYY") />
</cfif>
<cfset variables.instance.TransDate = arguments.TransDate />
</cffunction>
<cffunction name="getTransDate" access="public" returntype="string" output="false">
<cfreturn variables.instance.TransDate />
</cffunction>

This is generated by the Rooibos code written by P Farrell



On Wed, Jun 9, 2010 at 2:07 PM, Sean Corfield <seancorfi...@gmail.com <mailto:seancorfi...@gmail.com>> wrote:

    What do the methods setTransDate() and getTransDate() look like? Is
    there a declared property behind them? If so, what does that look
    like?

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET <http://ASP.NET> hosting from AUD$15/month
--
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.

--
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.

Reply via email to