Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgarcia75
Contributor III
Contributor III

Timestamp

Hello

I have a MySql table with two fields: Date Msg (date type) and TimeMsg (type time).

I wish to load these two fields and create a new create with these two fields:

RDV:

LOAD
  DateMsg,
  TimeMsg,
  Timestamp (DateMsg & '' & TimeMsg) as tsMsg;
From ...

But, it does not working
Who can help me ?
Thanks
P

Labels (1)
1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

If your date and time are dates and times and not string then try

Timestamp (num(DateMsg)+ num(TimeMsg) )as tsMsg;
Learning never stops.

View solution in original post

3 Replies
anushree1
Specialist II
Specialist II

Please use 

Timestamp( FieldName ,'YYYY-MM-DD hh.mm'

 or 
Timestamp(Timestamp#(Fieldname))
pradosh_thakur
Master II
Master II

If your date and time are dates and times and not string then try

Timestamp (num(DateMsg)+ num(TimeMsg) )as tsMsg;
Learning never stops.
pgarcia75
Contributor III
Contributor III
Author

Thanks