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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
muralam
Creator
Creator

How can i add year to a date and month value

Hello,

 

kindly suggest i am having a column where my input looks like 7-Jan but i need output as 7/1/2019(current year),how can i achieve this.

 

Regards,

Meena

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@muralam,i will suggest you to create a new filed in tmap by using var as a sting with -2019 and concatenate the source field with variable field and then convert to sting to data.

View solution in original post

3 Replies
RajeevKumarMeh
Contributor
Contributor

Please try like this :

 

 select to_char(to_date('07-Jan' || '-' || extract(year from sysdate),'DD-MON-YYYY'),'DD/MM/YYYY') from dual ;

manodwhb
Champion II
Champion II

@muralam,i will suggest you to create a new filed in tmap by using var as a sting with -2019 and concatenate the source field with variable field and then convert to sting to data.

manodwhb
Champion II
Champion II

Hi @muralam ,

If the answer has helped you,could you please mark the topic as resolved?