user11043921
user11043921

Reputation: 21

Dremio date conversation

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

Upvotes: 0

Views: 3202

Answers (1)

Joe
Joe

Reputation: 6827

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

Upvotes: 0

Related Questions