Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date time field
Message
 
To
15/11/2002 10:19:50
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00723213
Message ID:
00723236
Views:
10
Hi Jim,

In the databinding of the textbox, add the formating of "{0:d}" like in the following:
Text='<%# DataBinder.Eval(MyDataSet, "Tables[Employees].DefaultView.[0].HireDate", "{0:d}") %>'
>All,
>
> I have bunch of datetime fields on various webforms that are displayed in textboxes. I want to only display the date portion. How do I do this with the textboxes being databound?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform