2

I'm using Seekwell to connect my AWS postgres database to Sheets.

I think I'm converting my dates to standard 'date' (YYYY-MM-DD) format in the code, eg.

date(date_trunc('day', u.created_at::date)) Date_Created

However, when the query is run, my dates are iso 8601, eg.

2018-05-16T00:00:00.000Z

Of course, given that my results are going into Google Sheets, I can always convert those dates there in sheets, but that adds a layer of complexity that is hard to manage.

How can I make sure the dates are formatted correctly before the results land in sheets?

1 Answer 1

3

Michael from Seekwell tells me this is:

a bit of bug with how JDBC handles dates in the background. You're on Postgres, right? This should work from within the add-on:

to_char(your_date_column, 'YYYY-MM-DD')

Sheets will recognize that result as a date.

This worked.

Sign up to request clarification or add additional context in comments.

1 Comment

I was going to ask you what Google Sheets expects. If it can accept a text date in the format you want, then you really want text, not date, output. What you wrote above is precisely that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.