Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Partner
Partner

Convert text to Date

Dear all,

I have the field MONTH_REF with value "01 - Januery", how i can convert this for month?

All help will be appreciated

1 Solution

Accepted Solutions
neelamsaroha157
Valued Contributor II

Re: Convert text to Date

try this -

Date(Date#(Left(MONTH_REF,2), 'MM'), 'MMM')

3 Replies
vamsee
Valued Contributor

Re: Convert text to Date

May be try

Month(Date#(Trim(Subfield('01 - January', '-', 1)) ,'M') )

--------

Month(Date#(Trim(Subfield(MONTH_REF , '-', 1)) ,'M') )

neelamsaroha157
Valued Contributor II

Re: Convert text to Date

try this -

Date(Date#(Left(MONTH_REF,2), 'MM'), 'MMM')

Partner
Partner

Re: Convert text to Date

Exactly what I need. thank you