error in typecasting related to date

Oct 11, 2010 at 10:56 AM

following code works normally in asp compiler and displays date adding output

response.Write Date

()+100

but in classic asp compiler

System.InvalidCastException: Invalid cast from 'DateTime' to 'Int32'.

Coordinator
Oct 12, 2010 at 6:00 AM
I need to add the operation rule between datetime and integer. Thanks for reporting.

From: [email removed]
Sent: Monday, October 11, 2010 3:56 AM
To: [email removed]
Subject: error in typecasting related to date [aspclassiccompiler:230398]

From: amrullah

following code works normally in asp compiler and displays date adding output

response.Write Date

()+100

but in classic asp compiler

System.InvalidCastException: Invalid cast from 'DateTime' to 'Int32'.