VB.Net convert from ToShortDateString to MM/DD/YY in a text box (string)
Posted on 2006-07-18
I have a series of column headers that currently are textbox to display date ranges.
I have this close to what I want, but would like to trim down 2006 to 06.
Current code is:
txtDate1.Text = Date.Today.ToShortDateString
Tried format on the end and played around with it but couldn't get this. Do I need to create a Date Variable, do the formatting, then send to string and set the text box value to this or can I do directly within string like I'm attempting?