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

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,712)