Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Naresh1
Contributor III
Contributor III

Splitting two dates from date field

Hi,

I have Date Field in that field having values like '1.10.2019 to 12.10.2019'

                                                                                                 ' 13.10.2019 to 26.10.2019'

i want to split this values into two fields,

                                                                                 From_Date :                                 To_Date:

                                                                                     '1.10.2019'                                         '12.10.2019'

                                                                                     ' 13.10.2019'                                    ' 26.10.2019'

How can i do?

1 Solution

Accepted Solutions
Taoufiq_Zarra

Maye be :

Data:

load Date#(trim(left(DateField,index(DateField,'to')-1)),'DD.MM.YYYY') as From_Date ,Date#(trim(right(DateField,index(DateField,'to')-1)),'DD.MM.YYYY') as To_Date,* inline [
DateField
1.10.2019 to 12.10.2019
13.10.2019 to 26.10.2019
];

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

Maye be :

Data:

load Date#(trim(left(DateField,index(DateField,'to')-1)),'DD.MM.YYYY') as From_Date ,Date#(trim(right(DateField,index(DateField,'to')-1)),'DD.MM.YYYY') as To_Date,* inline [
DateField
1.10.2019 to 12.10.2019
13.10.2019 to 26.10.2019
];

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉