Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date formats
Message
From
11/10/2006 09:41:56
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01161162
Message ID:
01161173
Views:
16
>Hello All, I would like to be able to show dates in the format: dd-mm-yy without setting the Windows shortdate to dd-mm-yy ( I'm using a masked textbox for input ), however, if I populate the Text property using
>
>mytextbox.Text = DateTime.Now.ToShortDateString();
>
>I get 11-10-20, I don't know the implications of changing the Windows shortdate setting so would like to work around it for now, many thanks.

Pete,

You can use
mytextbox.Text = Datetime.Now.ToString("dd-MM-yy")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform