cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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. 

3 REPLIES 3
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?

 

Regards,

Mona

 

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

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,864)