'Convert your string value to date time
Dim yourinput = "05/11/2018"
Dim result As Date = Date.ParseExact(yourinput, "dd/MM/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)
'Your required format
Dim formattedresult = result.ToString("dd/MMM/yyyy")
Member
185 Points
401 Posts
Calender Month in VB.NET
Nov 09, 2018 02:57 AM|shsu|LINK
How can I make the selected month from the calendar in this format IN VB.NET. [if I Select it is coming as 5/11/2018]
5/NOV/2018
or
how to convert the 5/11/2018 to 5/NOV/2018 on button click. Which ever date is selected must change to this format
Appreciate the help
All-Star
50841 Points
9895 Posts
Re: Calender Month in VB.NET
Nov 09, 2018 03:27 AM|A2H|LINK
You can try with below code
Aje
My Blog | Dotnet Funda
Member
185 Points
401 Posts
Re: Calender Month in VB.NET
Nov 09, 2018 07:07 AM|shsu|LINK
Thanks .It is working in the server where date format of the windows is d/m/yyyy
If I run the program in another desktop with m/d/yyyy then error is showing that Georgian calender don't have the date
Appreciate the help