Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jonathanrichey
Contributor III
Contributor III

Date Script not converting integer correctly

I have a date that is loaded as an Integer in the following format YYYYMMDD. The date function does not convert correctly. Is there an additional step I am missing?

I have set the date:

SET DateFormat='YYYY/MM/DD';

Load statement:

DateHelper:
Load 
//*,
	PrioritizedDateKey,
	date(MonthStart([PrioritizedDateKey])) as DateHelperMonthYear,
	Date(PrioritizedDateKey,'YYYY/MM/DD') as comeatme,
	Year(Date#(PrioritizedDateKey,'YYYY/MM/DD')) as DateHelperYear
Resident ComeAtMeTable;

The image shows the result after the load.

dateissue.PNG

 

Labels (3)
1 Solution

Accepted Solutions
Mark_Little
Luminary
Luminary

Hi,

Try
Date(Date#(PrioritizedDateKey,'YYYYMMDD')'YYYY/MM/DD')

Mark

View solution in original post

3 Replies
Mark_Little
Luminary
Luminary

Hi,

Try
Date(Date#(PrioritizedDateKey,'YYYYMMDD')'YYYY/MM/DD')

Mark
Somasundaram
Creator III
Creator III

Use this,

Date(Date#(PrioritizedDateKey,'YYYYMMDD')'YYYY/MM/DD')


-Somasundaram

If this resolves your Query please like and accept this as an answer.
jonathanrichey
Contributor III
Contributor III
Author

To simple. I overlooked it. Thanks for your assistance!