public static DateTime GetRequiredDateTimeParameter(string parameterName) { DateTime?value = WebFormsHelper.GetDateTimeParameter(parameterName); if (!value.HasValue) { throw new Exception(string.Format("Missing {0} Parameter", parameterName)); } return(value.Value); }
protected DateTime GetDateTimeParameter(string parameterName, DateTime defaultValue) { return(WebFormsHelper.GetDateTimeParameter(parameterName, defaultValue)); }
public static DateTime GetDateTimeParameter(string parameterName, DateTime defaultValue) { DateTime?returnValue = WebFormsHelper.GetDateTimeParameter(parameterName); return(returnValue.GetValueOrDefault(defaultValue)); }
protected DateTime?GetDateTimeParameter(string parameterName) { return(WebFormsHelper.GetDateTimeParameter(parameterName)); }