Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Using a button to update Date Time

i have a datacard with the date picker and time controls. I can set the default of the datacard to Now() and it will populate the date and time with no issues. however i dont want the default to be now() as everytime i edit a record it will default to now() and not the date and time that was orignially selected in the record.


So how to i use a button to update the date and time datacard?



Super User III
Super User III

Hi @LjGk

Unless I misunderstand you, you can avoid setting the second field value to Now by not applying the formula to the default property of your second field.

In answer to your second question, I don't understand why your button would change its color and text. I'd suggest that you delete the button and re-add a new button. Apply the formula to your new button and see if it still exhibits the problem with it changing color.  

Helper IV
Helper IV


In my scenario,

When we try to submit a new request to Add and Remove User.

I have two buttons, Add and Remove on my edit screen.

When we click on Add button ABC datacardvalue should be null.

when we click on Remove button ABC datacardvalue should be "Remove".

And the Datacardvalue should set to null once the form is submitted.

Any ideas how to fix this would help.





Not applicable

hi @timl thank you for being so helpful within this thread. could you review the above question and possibly assist? 




Hi @Anonymous , thanks for alerting me to this. @MK1, perhaps you might be able to share a screenshot, or some of the formula that you've tried so that we can better help you? Thanks.


Resolved. sucessfully. After changing the scenario.


View solution in original post


Sorry, I'm trying to figure out what you mean and I'm honestly lost.  What context did you change to get this to work  I'm trying set a button to update the Date, Hour, and Minute pickers and dropdowns to the current time and no matter what I do I'm getting complaints about trying to do invalid comparisons or the function just down't work.


Hi im also having the same problem. in my case there are few fields and seperate buttons to update date and time. when ussing the following formulas all fields are updated with same value. can you help me to solve this issue

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,150)