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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
svsudhakar
Creator
Creator

How to add the hours to date ?

Hi ,

can any one please tell me how to add the 5 hours to date filed.

regards,

sudhakar Siram

1 Solution

Accepted Solutions
lukaspuschner
Partner - Creator
Partner - Creator

Thank you, please mark your question as answered

View solution in original post

11 Replies
MK_QSL
MVP
MVP

Do you mean to add 5 hour to TimeStamp Field or you want to add something like below?

Your Date 29/04/2014

Your New Date 29/04/2014 05:00:00

UPDATE : Use as below

=Timestamp#(Date(YourDateField) &' '& Time#('05:00:00'))

its_anandrjs
Champion III
Champion III

You have the time stamp date format or what means want to add the 5 hours to date field.

svsudhakar
Creator
Creator
Author

Hi Anand,

I have the timestamp date format to that I need to add 5.30 hours.


maxgro
MVP
MVP

I think you have to just add 5.30/24

something similar to

=date(now() + 5.30/24, 'DD/MM/YYYY hh:mm:ss')

here for more on date and time

QlikView Date fields

svsudhakar
Creator
Creator
Author

Hi Manish,

I need to add 5.30 hours to time stamp date filed . Format is like below

Ex: Date 29/04/2013 5.47.30


lukaspuschner
Partner - Creator
Partner - Creator

Hello,

this will work:

Timestamp((YourTimeStamp + Timestamp(MakeTime(5,30))),'DD/MM/YYYY hh.mm.ss')

Not applicable

Hi,

Please try these in text objects and let me know this is how you required ?

=Date(Timestamp#('29/04/2014 17:00:39','DD/MM/YYYY HH:mm:s'),'DD/MM/YYYY HH:mm:s')

=Time('5:30','hh:mm')

=Date(Date(Timestamp#('29/04/2014 17:00:39','DD/MM/YYYY HH:mm:s'),'DD/MM/YYYY HH:mm:s')+Time('5:30','hh:mm'),'DD/MM/YYYY HH:mm:s')

its_anandrjs
Champion III
Champion III

Write like

=Timestamp( (now() + 5.30/24),'DD/MM/YYYY hh:mm:ss')

Or

=Timestamp( ( YourField + 5.30/24),'DD/MM/YYYY hh:mm:ss')

MK_QSL
MVP
MVP

=TIMESTAMP(YourFieldName+Time#('05:30:00','hh:mm:ss'))