Created
April 5, 2018 00:40
-
-
Save gadelkareem/b86e52b95e6086a85c39cf640ba9bf68 to your computer and use it in GitHub Desktop.
Convert postgres timestamp to solr date format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT to_char('2018-02-28 18:48:11.196+00'::timestamp, 'YYYY-MM-DD"T"HH24:MI:SSZ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment