[Note] the SQLite error "this string is not recognized as a valid datetime" is returned when reading a record with a date format.

Source: Internet
Author: User
Tags sqlite manager

Detected time issues with the SQLite manager plug-in of Firefox, manually added data,ProgramAn invalid datetime format is reported during reading. If it is added using a program, this problem does not exist.

SQLite Manager version 0.3.17

System. Data. SQLite. dll version: 1.0.60.0

This string is not recognized as a valid datetime.

Note:An error occurred while executing the current Web request. Check the stack trace information to learn about this error andCodeDetailed information about the cause of the error.
Exception details:System. formatexception: the string is not recognized as a valid datetime.
Source error:

 
Row 24: info. nickname = reader ["nickname"]. tostring (); row 25: info. realname = reader ["realname"]. tostring (); row 26: info. bdday = convert. todatetime (Reader ["bdday"]). tostring ("yyyy-mm-dd"); Row 27: info. regip = reader ["regip"]. tostring (); row 28: info. regdate = convert. todatetime (Reader ["regdate"]). tostring ("yyyy-mm-dd ");
 
 
 
 
 

Stack trace:

[Formatexception: This string is not recognized as a valid datetime.] System. datetimeparse. parseexactmultiple (string S, string [] formats, datetimeformatinfo dtfi, datetimestyles style) + 2827362 system. datetime. parseexact (string S, string [] formats, iformatprovider provider, datetimestyles style) + 49 system. data. SQLite. sqliteconvert. todatetime (string datetext) + 260 system. data. SQLite. sqliteconvert. todatetime (intptr, int32 Len) + 65 system. data. SQLite. sqlite3.getdatetime (sqlitestatement stmt, int32 index) + 88 system. data. SQLite. sqlite3.getvalue (sqlitestatement stmt, int32 index and sqlitetype typ) + 528 system. data. SQLite. sqlitedatareader. getvalue (int32 I) + 178 system. data. SQLite. sqlitedatareader. get_item (string name) + 62 ITCA. yuwen. core. users. datareader2userinfo (idatareader reader) in F: \ doctments \ works \ mine \ itcaweb \ trunk \ ITCA. yuwen. core \ Users. CS: 26 ITCA. yuwen. core. users. getuserinfo (string loginid, string password, int32 logintpye) in F: \ doctments \ works \ mine \ itcaweb \ trunk \ ITCA. yuwen. core \ Users. CS: 50 ITCA. yuwen. web. login. page_show () in F: \ doctments \ works \ mine \ itcaweb \ trunk \ ITCA. yuwen. WEB \ login. aspx. CS: 17 ITCA. yuwen. web. basepage .. ctor () in F: \ doctments \ works \ mine \ itcaweb \ trunk \ ITCA. yuwen. WEB \ basepage. CS: 45 ITCA. yuwen. web. login .. ctor () + 43 ASP. login_aspx .. ctor () in c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ temporary ASP. net files \ Root \ 955e2214 \ b4bcb2de \ app_web_vg4npwke.2.cs: 0 _ ASP. fastobjectfactory_app_web_vg4npwke.create_asp_login_aspx () in c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ temporary ASP. net files \ Root \ 955e2214 \ b4bcb2de \ app_web_vg4npwke.5.cs: 0 system. web. compilation. buildresultcompiledtype. createinstance () + 32 system. web. compilation. buildmanager. createinstancefromvirtualpath (virtualpath, type requiredbasetype, httpcontext context, Boolean allowcrossapp, Boolean noassert) + 119 system. web. UI. pagehandlerfactory. gethandlerhelper (httpcontext context, string requesttype, virtualpath, string physicalpath) + 33 system. web. UI. pagehandlerfactory. system. web. ihttphandlerfactory2.gethandler (httpcontext context, string requesttype, virtualpath, string physicalpath) + 40 system. web. httpapplication. maphttphandler (httpcontext context, string requesttype, virtualpath path, string pathtranslated, Boolean useappconfig) + 160 system. web. maphandlerexecutionstep. system. web. httpapplication. iexecutionstep. execute () + 93 system. web. httpapplication. executestep (iexecutionstep step, Boolean & completedsynchronously) ++ 155

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.