PowerApps IF OR Formula for Date < Today()+15

时间:2019-04-08 13:27:18

标签: powerapps powerapps-formula

IF OR formula works until I add a date that checks to see if selected date occurs after 15 days from today.

// Works w/o date
If(Or( IsBlank(txtClientNameSignature), !IsNumeric(txtNumDocsToSign.Text) ), DisplayMode.Disabled, DisplayMode.Edit)

However, once I add a date formula, it does not correctly evaluate the date.

// Does NOT Work Due to Date Forumala
If(Or( IsBlank(txtClientNameSignature), !IsNumeric(txtNumDocsToSign.Text), dpkrDueDateSignature.SelectedDate < Today()+15 ), DisplayMode.Disabled, DisplayMode.Edit)

Any recommendations are appreciated.

1 个答案:

答案 0 :(得分:0)

这是解决方案:

If(Or( IsBlank(txtClientNameSignature), !IsNumeric(txtNumDocsToSign.Text), dpkrDueDateSignature.SelectedDate < DateAdd( Today(), 15, Days) ), DisplayMode.Disabled, DisplayMode.Edit)

DateAdd(Today(),15,Days)是我需要的。