public class CustomConvertor { public static string ToDate(out this DateTime dt) { return dt.ToShortDateString(); } }