i need to convert datetime in asp.net like this


11/01/05

Recommended Answers

All 2 Replies

private string convertDate(string dateToConvert) 
{
     DateTime date = Convert.ToDateTime(dateToConvert);

     return date.ToString("MM/dd/yyyy");
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.