显示从数据库到DTpicker的日期 [英] Show Date from Database to DTpicker
本文介绍了显示从数据库到DTpicker的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
请指导我如何从数据库中显示Dtpicker中的日期时间.
其中,数据作为数据存储在Datatime领域的数据库中.
Dear All,
Kindly guide me How I can show the Datetime in Dtpicker from a database.
Where as data stored in a database in Datatime feild.
Kindly guide me.
推荐答案
您可以在下面的链接中进行日期选择器控制操作.
^ ]
在文章中,您将找到变量Now
,其中将您的数据库检索的日期值转换为DateTime
对象.
如果有帮助,请投票和接受答案.
You could refer below link for datepicker control operation.
http://www.builderau.com.au/program/vb/soa/Learn-how-to-use-the-DateTimePicker-control-in-VB-NET/0,339028462,339281457,00.htm[^]
Inside the article you will find the variableNow
, There put your database retrived date value by casting it toDateTime
object.
Please Vote and Accept answer if it helped.
这篇关于显示从数据库到DTpicker的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文