Hi All,
I have SharePoint List which has a form that customized using PowerApps.
In this form I have:
1. Date and Time controller - Email Draft Needed By (Date and time format - Date & Time)
2. Toggle - Same Day Due - Yes/No
Properties
Email Draft Neede By Card Name > Email Draft Needed By_DataCard1
Controller Name > dtpEmailDraftNeededBy
dtpEmailDraftNeededBy > DefaultDate
Same Day Due Card Name > Same Day Due_DataCard1
Controller Name > tglSameDayDue
I want to add few hours to the DefaultDate property of the Email Draft Needed By when the Same Day Due toggle is 'YES'.
I used the below formula
If(IsBlank(Parent.Default)&&tglSameDayDue.Value=false,Today()+1,If(IsBlank(Parent.Default)&&tglSameDayDue.Value=true,Text(DateAdd(Now(), 4, Hours),"dd-mm-yyyy hh:mm"),Parent.Default))
The issue is that this formula didn't add hours to Now().
Can someone please let me know what I have done wrong?
Thanks.