-1

How to convert date field "Dec 1 2018 6:38PM" to dd-mm-yyyy (01-12-2018)` in Dremio?

Joakim Danielson
  • 43,251
  • 5
  • 22
  • 52
user11043921
  • 11
  • 1
  • 1

1 Answers1

0
select to_timestamp('Dec 1 2018 6:38PM','mon dd yyyy hh:miAM')

Date/Time formats here: https://docs.dremio.com/sql-reference/sql-functions/datetime-formats.html

Joe
  • 6,767
  • 1
  • 16
  • 29