예제 #1
0
        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));
        }
예제 #2
0
        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));
        }