/// Return Int32 type in date string YYYYMMDD. public static Int32 DateToIntDate(this DateTime date) { return Convert.ToInt32(date.ToString("YYYYMMDD")); }