默认CalendarExtender日期 [英] default CalendarExtender date
本文介绍了默认CalendarExtender日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
当我离开CalendarExtender文本框为空白时.默认情况下保存1/1/1900.
所以如何防止保存默认的CalendarExtender日期.
Hi..
when i leave CalendarExtender text box is blank. it saves 1/1/1900 by default.
so How to Prevent to save default CalendarExtender Date.
推荐答案
根据您的要求将值设置为NULL或当前日期
Set the Value to NULL or Current Date as per your requirment
1/1/1900是MSSQL提供的默认日期.如果我们有一个带有datetime字段的表,并且在此字段中输入一个空值,那么该表的值将是1/1/1900.
因此,请使用日历属性将日期设置为系统日期.
问候,
shefeek
Hi,
1/1/1900 is the default date MSSQL provides.if we have a table with a datetime field ,and we enter a null value in to this field then teh table value would be 1/1/1900.
so set the date as sysytem date using calendar properties.
regards,
shefeek
这篇关于默认CalendarExtender日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文