How to convert "19/01/2014" into 19-Jan-2014?

 Posted by Rajesh_Kumar on 1/19/2014 | Category: C# Interview questions | Views: 839 | Points: 40
Answer:

We will use ToString method of DateTime object to convert date into specific format like below:

dt.ToString("dd-MMM-yyyy")


Output would be:19-Jan-2014


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response