我想在09:00从文本框中绑定数据库(存储为09:00:00)...怎么做...?......... [英] I wanna Bind 09:00 AM in textbox from database(stored as 09:00:00)...how to do this ..?.........
本文介绍了我想在09:00从文本框中绑定数据库(存储为09:00:00)...怎么做...?.........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的文本框(< MaskEditExtender>)上午09:00绑定数据库(存储为09:00:00)...怎么做...?.........或者任何其他方式来执行此过程
I wanna Bind 09:00 AM in my textbox(<MaskEditExtender>) from database(stored as 09:00:00)...how to do this ..?.........OR any other way to do this process
推荐答案
如下所示。
timeTextBox.Text = myDateTime。 ToString(hh:mm tt);
tt是AM / PM的标识符。
Do like below.
timeTextBox.Text=myDateTime.ToString("hh:mm tt");
"tt" is identifier for AM/PM.
这篇关于我想在09:00从文本框中绑定数据库(存储为09:00:00)...怎么做...?.........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文