How to fix the error.

9 views
Skip to first unread message

Antony Millan

unread,
May 21, 2012, 3:27:44 AM5/21/12
to dotnetde...@googlegroups.com
Hi team,
 
Here is the attached error while trying to debug the application, but not able to fix the issue. Kindly advice me how to proceed futher to fix the issue.
 
 

Server Error in '/' Application.

The value '' of the ValueToCompare property of 'cmpVALID_FROM_TODAY' cannot be converted to type 'Date'.

 

Regards,

Millan

error.jpg

Stephen Russell

unread,
May 22, 2012, 10:34:23 AM5/22/12
to dotnetde...@googlegroups.com
---------------------

cmpVALID_FROM_TODAY ="" << This is what you currently have.

cmpVALID_FROM_TODAY ="2012-5-19" << Something like a date is what you need.

--
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell

prakash Dotnet

unread,
Jun 16, 2012, 8:16:55 AM6/16/12
to dotnetde...@googlegroups.com
hi,
please use following code to compare current date
cmpVALID_FROM_TODAY ='<%= DateTime.Now.ToShortDateString() %>'

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Kinjal Joshi

unread,
Jun 18, 2012, 1:08:56 PM6/18/12
to dotnetde...@googlegroups.com
 N also make page formate cluture="en-GB" for dd/mm/yyyy format
Reply all
Reply to author
Forward
0 new messages