public PowerShellResults <InboxRule> GetObject(Identity identity) { PSCommand pscommand = new PSCommand().AddCommand("Get-InboxRule"); pscommand.AddParameter("DescriptionTimeFormat", EcpDateTimeHelper.GetWeekdayDateFormat(true)); pscommand.AddParameter("DescriptionTimeZone", RbacPrincipal.Current.UserTimeZone); return(base.GetObject <InboxRule>(pscommand, identity)); }
public static string ToUserWeekdayDateString(this ExDateTime?exDateTimeValue) { if (exDateTimeValue == null) { return(string.Empty); } CultureInfo currentCulture = CultureInfo.CurrentCulture; return(exDateTimeValue.Value.ToUserExDateTime().ToString(EcpDateTimeHelper.GetWeekdayDateFormat(true), currentCulture)); }