本文介绍了SqlDateTime溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI,
当我尝试从datetimepicker插入tu值时,发生SQLDateTime Overflow异常.该异常是
When i try tu insert value from the datetimepicker then a exception of SQLDateTime Overflow occurs.The exception is
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
Please guide how to handle this?
推荐答案
CONVERT(VARCHAR(10), GETDATE(), 101)
将使您的日期为MM/DD/YYYY
will make your date MM/DD/YYYY
这篇关于SqlDateTime溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!