将所选日期保存到数据库中 [英] save the selected date into the database

查看:77
本文介绍了将所选日期保存到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试将选定的时间保存在数据库中.我在做一个示例应用程序.
在那我必须选择日期.我是在日期选择器的帮助下完成的,现在我需要将其保存在数据库中.
怎么做?如何获取所选时间并将其存储在数据库中?有人可以帮我吗?
谢谢.

Hi,

I am trying to save the selected time in database. I doing it one sample application.
In that I have to select the date. I did that with the help of date picker, now i need to save it in the database.
How to do that? How to get the selected time and store it in the database? Can any one can help me?
Thank you.

推荐答案

您可以使用dtpDatOfInterview.Value 并将所选值插入数据库中.
dtpDatOfInterview是DateTimePicker的名称.
You can use dtpDatOfInterview.Value and insert the selected value in the database.
dtpDatOfInterview is the name of DateTimePicker.


这篇关于将所选日期保存到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆