// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.Globalization; namespace E_NAnt { public class SpecialFormats { public static string FormatDateTime(DateTime dt) { return dt.ToString("dd-MMM-yyyy HH:mm", new CultureInfo("en-US", false)); } public static string FormatMoney(decimal m) { return m.ToString("0.00 kroner", new CultureInfo("en-US", false)); } } }