SPLIT Function
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
i have date in string x=2007-08-24T00;00;00+5:30 Format. I need in mm/dd/yyyy format in C# plz help CARE CAREER
-
i have date in string x=2007-08-24T00;00;00+5:30 Format. I need in mm/dd/yyyy format in C# plz help CARE CAREER
string x=2007-08-24T00;00;00+5:30 Use, string []array=x.split("-"); Output: Here you have array[0]="2007"; array[1]="08"; array[2]="24T00;00;00+5:30 Now you can concate the string and use it as you wish.
Naresh Patel
-
i have date in string x=2007-08-24T00;00;00+5:30 Format. I need in mm/dd/yyyy format in C# plz help CARE CAREER
DateTime d = DateTime.Parse(x); d.ToString("MM/dd/yyyy");
-^-^-^-^-^- no risk no funk ................... please vote ------>