|
-
Mar 22nd, 2003, 09:53 AM
#1
Thread Starter
Lively Member
Date & Time in a textbox
Hi All,
How to display the date only without the time in a textbox binded to a dataset?
Thanks for the help
<><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><>
-
Mar 22nd, 2003, 10:14 AM
#2
PowerPoster
You are probably going to have to use the custom binding expression to accomplish it.
-
Mar 22nd, 2003, 03:59 PM
#3
Thread Starter
Lively Member
Thank you for your reply,
Can I have some code please?
<><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><>
-
Mar 23rd, 2003, 12:10 AM
#4
Lively Member
Is there an event that fires when the date is to be entered in this textbox?
-
Mar 23rd, 2003, 01:28 PM
#5
PowerPoster
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|