public static string GetSubscriptionYear(this QParaOptions options, DateTimeOffset date) { var fd = options.GetFirstDayOfYear(date); return(options.GetSubscriptionYear(fd.Year)); }
public static string GetCurrentSubscriptionYear(this QParaOptions options) { var year = options.GetFirstDayOfYear(DateTimeOffset.Now).Year; return(options.GetSubscriptionYear(year)); }