Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jamesehunt
Contributor III
Contributor III

Extract different Date formats from String

Hi All,

I am trying to extract a date from a String. Unfortunatle the Date format differs.

Fixed delivery Date.JPG

Any Suggestions?

Much obliged

Labels (1)
6 Replies
wdchristensen
Specialist
Specialist

Where is your date coming from?

regexp_like for Oracle / patindex for sql server

Frank_Hartmann
Master II
Master II

Please share the text data. a screenshot is not helpful!

wdchristensen
Specialist
Specialist

It would help to see the source table. You can use YEAR(TODAY()) to patch the missing year but it would be more reliable to patch the year from the timestamp from the date it was entered. 

jamesehunt
Contributor III
Contributor III
Author

The data is coming from our source system which is an AS400.

jamesehunt
Contributor III
Contributor III
Author

Please find attached an extract in excel

miskinmaz
Creator III
Creator III

You can use the keep char to remove all the text and keep only the numbers. The next step will be to use alt function to format date into one format.

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/StringFunction...