public static string RegularExpression(int yearsInFutureAllowed = 0) { return(YearRegexRangeGenerator.GetRegex((DateTime.UtcNow.Year + yearsInFutureAllowed).ToString(CultureInfo.InvariantCulture))); }
public static string RegularExpression() { return(YearRegexRangeGenerator.GetRegex(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture))); }