Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Highlighted
trishita
Contributor III

extraction of date and formatting

How can I extract the date in the format of yyyy-mm-dd from the given highlighted data

1 Solution

Accepted Solutions
Partner
Partner

Re: extraction of date and formatting

you Need to Format it to your requirements.

date(date#(left(text(Disposal_Date), 8),'YYYYMMDD'),'YYYY-MM-DD')

View solution in original post

5 Replies
trishita
Contributor III

Re: extraction of date and formatting

i did left(Disposal_Date, 😎 till now

Partner
Partner

Re: extraction of date and formatting

what Format is Disposal_Date ? Number?

then try

left(text(Disposal_Date), 😎

trishita
Contributor III

Re: extraction of date and formatting

i currently did left(Blige_Disposal_Date,8) and for that my data is coming like  20161215..I want to have it in the form  2016-12-15 format..

Partner
Partner

Re: extraction of date and formatting

you Need to Format it to your requirements.

date(date#(left(text(Disposal_Date), 8),'YYYYMMDD'),'YYYY-MM-DD')

View solution in original post

trishita
Contributor III

Re: extraction of date and formatting

Date(Date#(Sludge_Date, 'YYYYMMDD'),'YYYY-MM-DD')

Its working..anyways thanks