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 / Time in textbox not sh...
Power Apps
Unanswered

Time in textbox not showing same time as sql data

(0) ShareShare
ReportReport
Posted on by 46

I have textboxes in my app that are pulling date/time data from our sql database. The sql database has 3/15/2017 11:27:34 AM, the textbox displays 3/15/2017 7:27:34 AM.  The textbox is set to display Parent.Default, how can I get this to show the correct time? I can get it to display correctly by using ThisItem.Created + 4/24 on the parent but if I do that then I have to update the app everytime we go through the stupid daylight savings change.

Categories:
I have the same question (0)
  • AndyPennell Profile Picture
    Microsoft Employee on at

    The SQL datetime is in UTC so it is being correctly converted to local time when displayed. If you want to see it in UTC then try

    Text(ThisItem.Created, "UTC")
  • jrowe Profile Picture
    46 on at

    The SQL time is in local time not UTC. That's the problem, Powerapps is converting it when it shouldn't. I got rid of the problem by converting the column to varchar instead of datetime so Powerapps will leave it alone and just display the data. We use this database with other applications and it's all local so using UTC will only cause problems when it's not needed.

  • AndyPennell Profile Picture
    Microsoft Employee on at

    How can it be in local time if its on a SQL Server? Where is the server located?? Most data sources store datetime in UTC because that is the only format that makes any sense. (Excel is the exception, which stores datetime in a timezone-less way which has its own unique problems). What if one client of the DB is on the East coast, and another on the West coast? They both need to read the datetime and get the same value, which has to be UTC. Both can covert to local time for display purposes, which is what my sample did.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard