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 / Get Time/Date from server
Power Apps
Answered

Get Time/Date from server

(0) ShareShare
ReportReport
Posted on by 519

Hi ,

can I get Time and date from server in U.K. format instead of using ‘Now()’ which gets time and date from local device (iPad) 

or from a internet central time pool?

thank you 

kind Regards 

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AndyPowerAppNew ,

     

    You can use canvas app to call the flow to get the utc datetime. The power automate is a cloud service so it gets cloud utc datetime rather than local datetime.

    vxiaochenmsft_0-1673327972522.png

     

    Best Regards,

    Wearsky

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @v-xiaochen-msft ,

    thank you , can I then set this value as default in a text box in powerapps ?

    thanks 

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AndyPowerAppNew ,

     

    You can create a variable to save the returned datetime value from flow and use it in Default property of text input control.

     

    vxiaochenmsft_0-1673330024543.png

    vxiaochenmsft_1-1673330048316.png

     

    Best Regards,

    Wearsky

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @v-xiaochen-msft , I cant get this to work; i would like to get time and data from server or something maybe a custom connect, at the moment i am using

    AndyPowerAppNew_0-1673341271785.png

    in a text box, but this isnt really ver good because the time differs for some reason

     

    Thanks

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AndyPowerAppNew ,

     

    Which server? Could you clarify it?

    Did power automate not work for you? Have you tried my solution from my first reply?

     

    Best Regards,

    Wearsky

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @v-xiaochen-msft , please can you walk me though how i would set this up ?

    Thank you

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AndyPowerAppNew ,

     

    Here are the full steps.

    Create the flow.

    vxiaochenmsft_0-1673342774843.png

    vxiaochenmsft_1-1673342783624.png

    Open the canvas app and add the flow.

    vxiaochenmsft_2-1673342874584.png

    Add a text input and a button 

    vxiaochenmsft_6-1673344063178.png

    vxiaochenmsft_7-1673344076168.png

     

    Set(var,'PowerApp->RespondtoaPowerApporflow'.Run().datetime);Reset(TextInput1)
    Text(DateTimeValue(First(Split(var,".")).Result),"dd-mm-yyyy hh:mm:ss")

    The text input shows the utc datetime.

     

    Best Regards,

    Wearsky

  • AndyPowerAppNew Profile Picture
    519 on at

    Thank you , i already have a button on submit, can i add to this instead, so its one submit ton that does everything?

    Thanks

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AndyPowerAppNew ,

     

    You can use ';' to do it.

    Sample:

    Set(var,'PowerApp->RespondtoaPowerApporflow'.Run().datetime);Reset(TextInput1);

    SubmitFom(your form)

     

    Best Regards,

    Wearsky

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @v-xiaochen-msft ,

     

    I have added, but i think there is a issue;

    AndyPowerAppNew_0-1673345196384.png

    I have aded this to 'textbox'

    AndyPowerAppNew_1-1673345267739.png

    what have i done wrong here ?

    Thanks

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard