Conversion failed when converting date and/or time from character string while inserting datetime

后端 未结 15 1592
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 09:34

I was trying to create a table as follows,

create table table1(date1 datetime,date2 datetime);

First I tried inserting values as below,

15条回答
  •  孤独总比滥情好
    2020-11-22 10:04

    set Culture to english from web.config file

      
    

    for example if you set the culture to arabic the thime will be

    ‏22‏/09‏/2017‏ 02:16:57 ص

    and you get the error:Conversion failed when converting date and/or time from character string while inserting datetime

提交回复
热议问题