Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

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 Team
Community Support Team

Re: Date/Time Values In Google Sheets

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.
Level: Powered On

Re: Date/Time Values In Google Sheets

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)
Level: Powered On

Re: Date/Time Values In Google Sheets

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


Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (6,784)