This is driving me mad, should be simple,
How can I format a date string "01122006" to be "01/12/2006"
I have tried
string teststr = String.Format(" {d}","01122006" );
AND
string teststr = String.Format(" {##/##/####","01122006 ");
and various other methods but these throw errors.
Can someone help please ?
Thanks
Jon.
How can I format a date string "01122006" to be "01/12/2006"
I have tried
string teststr = String.Format(" {d}","01122006" );
AND
string teststr = String.Format(" {##/##/####","01122006 ");
and various other methods but these throw errors.
Can someone help please ?
Thanks
Jon.
Comment