I wanted to get the month display as 08. Here is my code. I got "Arguments out of range exception" error on the second line. What was wrong?
Me.TextBoxDateIn.Text = DateTime.Today.ToShortDateString.ToString()
Me.TextBoxDateOut.Text = ("0" & CDate(Me.TextBoxDateIn.Text).Month.ToString).Substring(2, 2)
Actually, I need to have date like '08/24/2006' and 'August 24, 2006'. What is the best way?
Thanks.
DanYeung
Me.TextBoxDateIn.Text = DateTime.Today.ToShortDateString.ToString()
Me.TextBoxDateOut.Text = ("0" & CDate(Me.TextBoxDateIn.Text).Month.ToString).Substring(2, 2)
Actually, I need to have date like '08/24/2006' and 'August 24, 2006'. What is the best way?
Thanks.
DanYeung
Last edited: