我没有convert.to date选项,为什么? [英] I have not convert.to date option why?
本文介绍了我没有convert.to date选项,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have not convert.to date option why???
我尝试过的事情:
What I have tried:
I have not convert.to date option why???
推荐答案
因为.net不支持Date数据类型,仅支持DateTime,因此您只具有Convert.ToDateTime.如果您只对日期感兴趣,则将时间保留为0:0:0或直接忽略它.
Because .net doesn''t support a Date data type, only DateTime so you only have Convert.ToDateTime. If you''re only interested in the date then leave the time at 0:0:0 or simply ignore it.
这篇关于我没有convert.to date选项,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文