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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Year format conversion

Hi, can anyone tell me how to convert a year from YYYY to YY.

Labels (1)
1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi,

Try

Right(Year,2) as NewYear

or

=date(today(),'YY')

regards

ASHFAQ

View solution in original post

4 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try

Right(Year,2) as NewYear

or

=date(today(),'YY')

regards

ASHFAQ

avinashelite
MVP
MVP

Hi,

Try like:

Date(Year(filed),'YY');

Anonymous
Not applicable
Author

Thanks for the reply. It works

ashfaq_haseeb
Champion III
Champion III

welcome

Regards

ASHFAQ