public static DateTime GetConfigValueDateTime(string itemKey) { SQLStoredProc sp = new SQLStoredProc(config.ConnectionString, "haah.GetConfigValueDateTime"); sp.AddInputParameter("@ItemKey", itemKey); return sp.ScalarDateTime(DateTime.MinValue); }