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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

add 1 minute to date field

Hi all

I have a date field - DATETIME formatted DD/MM/YYYY HH:MM

I need to add 1 minute to datetime?

thanks

5 Replies
christophebrault
Specialist
Specialist

Hi,

can you try this ?

=date(DATETIME+maketime(0,1,0),'DD/MM/YYYY HH:MM')

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
masha-ecraft
Partner - Creator
Partner - Creator

Since the internal representation of datetime in QV is a number with the part before decimal point representing number of days, the expression you should add to your field should be 1/(24*60).

/Masha

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

     TimeStamp(Num(DateField)+(1/(24 * 60)),'DD/MM/YYYY HH:MM')

Celambarasan

SunilChauhan
Champion II
Champion II

USE  BELOW CODE

TIMESTAMP(TIMESTAMP(TIMEFIELDNAME) +MAKETIME(00,01,00))

HOPE THIS HELPS

Sunil Chauhan
jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this example

=TimeStamp(Num(Date#('04-24-2012 08:00', 'MM-DD-YYYY hh:mm'))+(1/(24 * 60)),'DD/MM/YYYY HH:mm')

Hope this helps you.

Regards,

Jagan.