spliting the string
Posted
by
prince23
on Stack Overflow
See other posts from Stack Overflow
or by prince23
Published on 2011-01-06T15:45:37Z
Indexed on
2011/01/06
15:53 UTC
Read the original article
Hit count: 129
c#
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
© Stack Overflow or respective owner