Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date from YearMonth

Hi

I have a field say 'A' which has YearMonth like this (200903). From that field i want to create a date field in this format 01/03/2009

How is this possible in script? Below is sample script.

Load

     A,

     Month(date#(A,'YYYYMM')) as Month,    /* Month Name (Jan,Feb,Mar...)

     Num(Month(date#(A,'YYYYMM')),'00') as [Month Number],   /* Month Number (01,02,...,12)

     Year(date#(A,'YYYYMM')) as Year,    /* Year (2009,2010...)

Thanks

1 Solution

Accepted Solutions
sunny_talwar

May be this

Date(Date#(A, 'YYYYMM'), 'DD/MM/YYYY') as Date

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try

Date(MonthStart(Date#(A,'YYYYMM')),'DD/MM/YYYY') as Date,

sunny_talwar

May be this

Date(Date#(A, 'YYYYMM'), 'DD/MM/YYYY') as Date