且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Oracle转换为C#中的DateTime的日期

更新时间:2023-11-29 13:20:16

.日期始终包含时间部分.***是在用户界面中将其格式化为正确的格式.

但是如果需要,您可以将其转换为字符,例如:
In Oracle Date always contains time portion. The best is to format it in the user interface to proper format.

But if you have to, you can convert it to character, something like:
SELECT TO_CHAR(MyField, 'dd/mm/yyyy') ...


但是如可能的话,让数据采用日期格式并使用UI格式


But as said if possible, let the data be in date format and use UI formatting