Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Current Date in mm/dd/yy format

Status
Not open for further replies.

bslaast

MIS
Joined
Oct 22, 2009
Messages
46
Location
US
How can I display the current date formatted dd/mm/yy in a text box?

I currently have:

textbox.text = now()

but that displays a date time format of dd/mm/yyyy hh:mm:ss

 
TextBox.Text = DateTime.Now.ToString("dd/MM/yy")
 
that is giving me a time: 57/12/10

 
You need to CAPITALIZE MM like I showed you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top