Showing posts with label formatting. Show all posts
Showing posts with label formatting. Show all posts

Wednesday, January 14, 2009

ToString()

I am always forgetting how to use ToString() to get things formatted the way I want them.

To format a datetime as a date:

RequestedShipDate.ToString("d");

RequestedShipDate.ToString("MM/dd/yyyy");

Monday, October 27, 2008

Formatting Blogger posts with c# code in them

Very cool tool right here: http://www.manoli.net/csharpformat/format.aspx but you have to change the page header to reference a CSS file but I am not sure how to upload the CSS file so I entered it in to the HTML template manually.

Wordpress has a cool plugin that makes this even easier.