Date arithmatic


I want to find out the no. of days left for a trader to find out no. of days remaining to submit the quotation. I am doing it as follows:

No of days remaining: <%=> where advertised_on is the date when the ad for quotation was published with

datetime as the type.

I m getting an error as Cant’s convert Float to Date. Why is it so?? Is thre ne other way??



Take a look at

Thnx man!!! Tht was helpful.

Thnx and regards,