Error : The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

Hi,

I got this error while developing an asp.net page with Sql server as database,

On checking the sql query i found out that the date value was not being sent in the format expected by the database , so by changing the format within my query resolved the issue !

Initially it was calendar.ToShortDateString() and i changed it to 

Calendar1.SelectedDate.ToString(“MM/dd/yyyy”)

Bye…


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

5 thoughts on “Error : The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.”

  1. Фильмы онлайн,смотреть онлайн фильмы,фильмы онлайн бесплатно. Фильмы смотреть бесплатно онлайн,фильмы онлайн без регистрации,фильмы онлайн бесплатно без регистрации,смотреть фильмы онлайн без регистрации,онлайн фильмы качество,порно фильмы онлайн,онлайн фильмы хорошого качества,онлайн фильмы хорошего качества,смотреть онлайн фильмы в качестве,смотреть хорошие фильмы онлайн,смотреть фильмы онлайн хорошего качества,онлайн фильмы качество бесплатно,фильмы онлайн смотреть бесплатно качество

    Like

  2. Dear Friends,

    I hope you are doing well. I have launched a web site http://www.codegain.com and it is basically aimed C#,JAVA,VB.NET,ASP.NET,AJAX,Sql Server,Oracle,WPF,WCF and etc resources, programming help, articles, code snippet, video demonstrations and problems solving support. I would like to invite you as an author and a supporter. Looking forward to hearing from you and hope you will join with us soon.

    Please forward this email to all of your friends who are related IT. Send to us your feed about site also.

    Thank you
    RRaveen
    Founder CodeGain.com

    Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s