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 Platform Community / Forums / Power Apps / Timestamp a date and t...
Power Apps
Unanswered

Timestamp a date and time, and also the username based on a yes/no toggle

(0) ShareShare
ReportReport
Posted on by 26

Hello,

 

I have a yes/no (DataCardValue1) toggle that when pressed I would like for 1 text box (textinput1) to show the date and time "dd mmm yy  hh:mm" (Time in a 24 hour format) and another box (textinput2) to show the user name of the person who pressed the button.

 

Is there any way to do this? I had a solution earlier that almost worked but every time I went to edit the entry it re-updated the time which didn't really work for me (I'd only want an update after the toggle was pressed).

 

Can anyone help?

 

Thanks

 

Aaron

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    In the OnCheck of the Toggle create a variable;
    UpdateContext ({varTime, Text( Now(), DateTimeFormat.LongDateTime )})

     

    Then in the text box: varTime

     

    in the other textbox: User().FullName------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Azbo6587 Profile Picture
    26 on at

    Hi,

     

    Sorry that didn't seem to work - I'm getting an error with the time code . Also, I only want the name of the user who clicked the toggle to be shown in the other box but it seems that whenever someone accesses it, it'll change based on who last saved it. I've attached some screenshots to demonstrate.

     

    Is there any workaround you can think of?

     

    Thanks so much for the help - really appreciate it.

     

    Aaron

    2.png
    1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard