public static String dateToString(Date date, Resolution resolution) {return timeToString(date.getTime(), resolution);}

public static string DateToString(DateTime date, Resolution resolution){return TimeToString(date.Ticks / TimeSpan.TicksPerMillisecond, resolution);}
