Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Date/Time Values In Google Sheets

I'm trying to add a timestamp to a record using the Now() function on a form update. With Excel as my data source, this works exactly as needed. Testing in Google Sheets inserts the date/time as a 13 digit Unix epoch value in plain text formatting which nothing seems to understand. I also notice that dates entered in Google Sheets do not sort correctly when read by PowerApps. 

Community Support
Community Support

Hi @ripp,


Could you please take a screenshot of that 13 digit Unix epoch value in plain text formatting which cannot be read by Google Sheets? Also, how did you sort the dates? What is the formula?





Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI @v-monli-msft


Here is the screenshot of the record in Google sheets. I have another version of the same app using the same formulas, and it works fine. The first record is the result from my initial app, and the second one shows the new problem I'm having.


Epoch Time in Google Sheets


The data from Google Sheets is showing up as plain text formatting, so the sorting is based on the numeric value of the record.


Date sorting in Google Sheets


Here is the code for the gallery sort.


Sort(Filter(GOODS,JobStatus.Selected.Value in CURRENT_STATUS,SEARCH.Text in CUSTOMER ||SEARCH.Text in ORDER_ID ||SEARCH.Text in WHO_CHECKIN ||SEARCH.Text in WHO_CHECKOUT ||SEARCH.Text in CHECKIN_TIME ||SEARCH.Text in CHECKOUT_TIME), If(JobStatus.Selected.Value ="IN", CHECKIN_TIME, JobStatus.Selected.Value ="OUT", CHECKOUT_TIME), Descending)
Frequent Visitor

I managed to fix my issue with the epoch time by deleting the custom data card I was using and replacing it with a new one. The formulas are all exactly the same, but it now posts the Now() value as a date/time.


I'm still having issues with sorting by date/time from Google Sheets. I manually formatted my cells as dates, but they are still read as plain text values.


Here is another example.

Sorting from Google Sheets

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,665)