When I have input as 22/1/2018, then I need to return Jan 22.
Do we have any way to use date parsing to achieve this?
@Deeipauk Convert.ToDateTime("22/1/2018).ToString(“MMM dd”)
Thanks for your reply. when I use
Convert.ToDateTime(“22/1/2018”).ToString(“MMM dd”)
I am getting error - String was not recognized as valid dateTime
Also I have explored in this time and found another way of making it 2 step process
1.) Assign ip = Date.ParseExact(“22/1/2018”, “dd/MM/yyyy”, System.Globalization.CultureInfo.CurrentCulture)
2.)ip.ToString(“MMM yy”)