Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display Date Without Time!
Message
From
10/02/2003 12:18:01
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00751401
Message ID:
00751481
Views:
20
Ahmad,

One thing you could do is to create a user control that has textbox on it. Bind your date column to this control, but in the text box that is on the control, only show the date portion, with the .ToShortDate() method.

~~Bonnie


>I am trying to display the date from SQL server database into a window form textbox as "dd/MM/yyyy", but it shows the time also.
>even this does not work :
>textbox1.text = format(dteDateandTime, "dd/MM/yyyy")
>
>beacuse I am using Databinding:
>Me.txtRegDate.DataBindings.Add("Text", myDS.Tables("Member"), "RegDate")
>
>Any idea how to avoide this.
>
>Thanks for the help
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform