Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

SQL Transformation

I have a field from a SQL data load called po.created_date. This field is formatted as YYYY-MM-DD HH:MM:SS.

I just want the date from this field. How can I do this in the script?

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try in QLik script

date(date#(Field,'YYYY-MM-DD HH:MM:SS'),'DD-MM-YYYY')  as YourDate

View solution in original post

7 Replies
Chanty4u
MVP
MVP

try in QLik script

date(date#(Field,'YYYY-MM-DD HH:MM:SS'),'DD-MM-YYYY')  as YourDate

neelamsaroha157
Specialist II
Specialist II

try Date(floor(Num(YourDateField)), 'DateFormat')

Chanty4u
MVP
MVP

or

date(date#(po.created_date,'YYYY-MM-DD HH:MM:SS'),'Here your Date format')  as po.created_dateNew

sergio0592
Specialist III
Specialist III

Hi try with :

load

timestamp(timestamp#(po.created_date,'YYYY-MM-DD hh:mm:ss'),'DD/MM/YYYY hh:mm:ss')

evansabres
Specialist
Specialist
Author

this also worked, thank you

evansabres
Specialist
Specialist
Author

this also worked, thank you

evansabres
Specialist
Specialist
Author

this also worked, thank you