[Logo] smithproject.org
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
Please provide solution for DateCompare..( not working in smith)  XML
Forum Index -> General Discussion
Author Message
Abhishek



Joined: 13/03/2008 17:06:55
Messages: 5
Offline

Dear All,

Please help DateCompare is not working in smith giving exception

Statement 1:

<CFIF #DateCompare("03/11/2008","03/11/2008")# IS 0>
<CFOUTPUT>"Hi i am here..."</CFOUTPUT>
</CFIF>

Exception = Error message: java.lang.ClassCastException
Error type: any


Statement 2

<CFSET EndTime = #APPLICATION.USERSLOGGEDIN[COUNTER].TIMECREATED# + #APPTIMESPAN#>

<CFIF #DateCompare("#Now()#", "#EndTime#")# IS 1>
<CFSET TEMP = StructDelete(application.UsersLoggedin, #COUNTER#, true)>

</CFIF>

Exception = Error message: java.lang.Double cannot be converted to DateTime!
Error type: expression

Thanks in advance...

Warm Regards,
Abhishek
orcus



Joined: 22/01/2007 16:10:52
Messages: 136
Offline

Hi Abhishek,

thanks for the post! all date/time functions are reimplemented and will be available starting from 1.3b7
 
Forum Index -> General Discussion
Go to:   
Powered by JForum 2.1.6 © JForum Team