spliting the string
- by prince23
hi,
i have an string like this
string strdate =@"5/2/2006";
which is in a form of month/day/year
i need to display it in a form of like this 02-05-2006
how do i format the data like this
if the value is like this 12/28/2005
it should be displayed like this 28-12-2010
i know we should be splitting the data based on that we should do it.
i am not getting the syntax how to do it .
any help would be great