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: 
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 (2)
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