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

Change date format included right function

Hello,

I have one field named PROFILE. That field returns the following data:

000673/2012.04.01.  The first characters are staffnumbers en the others are date of making the staffnumbers

I don't want to use the staffnumbers

How can i change only the 2012.04.01 to a date that i used in my application D-M-YYYY

Thank you

1 Solution

Accepted Solutions
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Hi,

Try:

Date(Date#(SubField(PROFILE,'/',2),'YYYY.MM.DD'),'D-M-YYYY') AS Date

Hope this helps,

Jason

View solution in original post

2 Replies
rohit214
Creator III
Creator III

hello.

try this

=right(000673/2012.04.01. ,11) as date

and front end date(2012.04.01,'dd-mm-yyyy')

or chane formate in your script SET DateFormat='DD-MM-YYYY';

thanks&regards

rohit

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Hi,

Try:

Date(Date#(SubField(PROFILE,'/',2),'YYYY.MM.DD'),'D-M-YYYY') AS Date

Hope this helps,

Jason