web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / save Today and Now in ...
Power Apps
Answered

save Today and Now in a form

(0) ShareShare
ReportReport
Posted on by 83

If I use the TODAY and NOW function in a card and then I save the form with SubmitForm and if I have to edit it again, the previously placed time will be updated with the current time and I will lose the data entered before, how do I do it use the function, get the current date and time, save it and when I go back, keep the previously placed time without changing it to the current one?

Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Where are you saving your TODAY / NOW values?  I would add another column (maybe named 'Last Edited'), and then save to that column if there is a value in your original column.

     

    Something like If(IsBlank('Original Submission Time'), SAVE HERE, ELSE SAVE THERE)

     

  • MayranPiran Profile Picture
    83 on at

    the data is saved in SharePoint with the date and time,
    in DefautDate I put TODAY, but I have 5 cards of value that need to be inserted with dates and times, but I put the date in a moment, I save and then I have to fill in another one and then the old card is updated

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    So it seems your departure / arrival times have a "Default" formula that is driven by the NOW function.  Is this correct?

     

    If so, you may be able to modify your "Default" formula.  Can you share the formula you are currently using?

  • MayranPiran Profile Picture
    83 on at

    that's right


    I'm using this in hours and minutes " Text(Hour(Now());"00")"

    already on the date DefautDate I am using TODAY()

  • Verified answer
    Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Something like this might work for your "Default" formula, assuming that the card with the dropdown is referencing the saved time value:

    If(IsBlank(ThisItem.'Your Column Name'),Text(Hour(Now()),"00"),Parent.Default)

     

    So check if the saved time column for the item you're working on is blank, if so use the NOW default, if not use the saved one.

     

  • Verified answer
    MayranPiran Profile Picture
    83 on at

    THANK YOU SO MUCH FRIEND, it was perfect, it saved my job hahaha, thank you very much...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard