Hi All,
How to display the date only without the time in a textbox binded to a dataset?
Thanks for the help
Printable View
Hi All,
How to display the date only without the time in a textbox binded to a dataset?
Thanks for the help
You are probably going to have to use the custom binding expression to accomplish it.
Thank you for your reply,
Can I have some code please?
Is there an event that fires when the date is to be entered in this textbox?
Not sure on how to do it with a textbox, but you will want to look into this method.
DataBinder.Eval(Container, "DataItem.TheDateColumnName", "{0:mmddyyyy}")
That is just an example, and don't know if the formatting part is right.
Do a search on DataBinder.Eval method and read all about it.