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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date transformation

i have the following date format which i wish to transform

1302-4

13 is Year ie . 2013

02 is week example week 2

-4th day of week nr 02

the date here would be 2013-01-10.

i have tried to use the following statement without success.

Makedate(2000+ num(left(Leveranstid,2)), num(week(mid(Leveranstid,3,2))), num(day(right(Leveranstid,2))))

best

Brad

1 Solution

Accepted Solutions
Not applicable
Author

Try this

makeweekdate(Year(Date#(left('1302-4',2),'YY')), num(mid('1302-4',3,2)),num(right('1302-4',1)))

View solution in original post

2 Replies
marcus_sommer

Try this:

date(num(Makedate(2000+ num(left(Leveranstid,2)))) +

((num(week(mid(Leveranstid,3,2))) * 7) +

num(day(right(Leveranstid,2))))), 'YYYY-MM-DD')

- Marcus

Not applicable
Author

Try this

makeweekdate(Year(Date#(left('1302-4',2),'YY')), num(mid('1302-4',3,2)),num(right('1302-4',1)))