How to convert text value into date
Textbox1 column value = 31/12/2009 (dd/MM/yyyy)
Tried
Cdate(textbox1.text)
The above code is not working.
I want to get a date like this ’31 Dec 2009′
How to write a code for getting this format.
Need vb.net code help
You can try
DateTime.TryParseExact
This will allow you to parse the string into a DateTime. You can then use ToString to format the date as you wish.
Have a look at DateTime.ToString() Patterns