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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

RealTime Field

(0) ShareShare
ReportReport
Posted on by 75

hai, i created a field date hour and minutes, take from microsoft list, and now every time it press a button which is close button, i want it to save the current time and minutes, not the time when he access the app.

i set the field default value to Hour(Now()),  Minute(Now())

and i patch it 

Patch(
    ReportDetailsTable,
    LookUp(
        ReportDetailsTable,
        ID = Gallery1_3.Selected.ID
    ),
    {
        Status: { Value: "Completed" },
        Remarks: DataCardValue15_3.Text,
        ClosedDateTime: DateValue1.SelectedDate +
Time(Value(HourValue1.Selected.Value),Value(MinuteValue1.Selected.Value),0)
    }
);


How do i fix this to make sure he patch the current real time.
Categories:
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello again @nayem 

     

    Just use Now() function.

    Patch(
     ReportDetailsTable,
     LookUp(
     ReportDetailsTable,
     ID = Gallery1_3.Selected.ID
     ),
     {
     Status: { Value: "Completed" },
     Remarks: DataCardValue15_3.Text,
     ClosedDateTime: Now()
     }
    );
  • nayem Profile Picture
    75 on at

    i see, what if submitting form, my function i used the SubmitForm function, how do i make the field inside the form date time value real time 

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @nayem 

     

    In the DataCard's Update function, replace it with Now()

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard