Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to create as load script for DATE from combine of day month year field ?

Hi All

I have 3 field month and year when load script :-

1 as day,

@50:52T  as month,

@53:57T  as year,

I want to add one more script , so that i will get DATE field .

So that it will become dd/mm/yyyy

Some thing like below :-

1 + @50:52T +  @53:57T as DATE,

But above does not return the correct date, May i know how to do ?

Paul

1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

failed to open document

View solution in original post

8 Replies
paulyeo11
Master
Master
Author

Enclosed my QV doc

martinpohl
Partner - Master
Partner - Master

What values are in the fields 50-57?

Look at "makedate"-syntax

Regards

martinpohl
Partner - Master
Partner - Master

failed to open document

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

use makedate function. ie date(makedate(year,month,day))

ashfaq_haseeb
Champion III
Champion III

Hi,

Look at makedate() function.

Regards

ASHFAQ

PrashantSangle

Hi,

try like this

makedate(@53:57T,@50:52T,1) as newDate

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
giakoum
Partner - Master II
Partner - Master II

Martin already suggested the makedate function.

I don't see why you guys keep suggesting the same thing again and again...

paulyeo11
Master
Master
Author

Hi All

Thank you every one for your contribution. Personally i like the below suggestion :-

makedate(@53:57T,@50:52T,1) as newDate


So all are right , but many choice make life simple.


Paul