public static string OneDay(DateTime dateTime) { string formatted = string.Format("{0:yyyyMMdd}", dateTime); return formatted; }