How would I make a datetime into a specific custom format?

Posted by RoboShop on Stack Overflow See other posts from Stack Overflow or by RoboShop
Published on 2010-06-17T05:27:23Z Indexed on 2010/06/17 5:33 UTC
Read the original article Hit count: 168

Filed under:
|
|

Say the current date is 1st Mar 2010, I want to display it like this...

20100301 so like first 4 digits = year, 2 digits = Month, 2 digits = day

is there an easy way to do this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET