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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

First date of the year


I have a field with just the year (ie 2013, 2014)

I need to turn the year into the first day of the year:

For instance 2014 would turned to 01/01/2014, 2013 would be turned to 01/01/2013, etc.

Any help?

Steve

12 Replies
hic
Former Employee
Former Employee

If you have the following in the script:

   Set LongMonthNames=

   'January;February;March;April;May;June;July;August;September;October;November;December';

then

   Date( DateField, 'DD MMMM YYYY')

will display the two dates as 23 April 2017 and 23 April 2018, respectively.


HIC

qlikviewwizard
Master II
Master II

Capture.JPG=date(yearstart(date#('2014','YYYY')),'DD-MMM-YYYY')

Anonymous
Not applicable

Hi,

Try this:

=date(date#('1-'&CMonth&'-'&CYear,'DD-MM-YYYY'),'DD-MM-yyyy') as Date,