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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

subtract 1 day from timestamp

hi,

11/12/2011 12:00:00 AM

is time i want result like

11/11/2011 12:00:00 AM

1 Solution

Accepted Solutions
maxgro
MVP
MVP

=date(date#('11/12/2011 12:00:00 AM', 'MM/DD/YYYY hh:mm:ss TT') - 1, 'MM/DD/YYYY hh:mm:ss TT')

2014-03-21 23_37_14-QlikView x64 - [C__Users_mgrossi_Desktop_Z.qvw_].png

View solution in original post

5 Replies
its_anandrjs
Champion III
Champion III

Hi,

Use add months

Hope this helps

Thanks & Regards

its_anandrjs
Champion III
Champion III

Hi,

Use like =AddMonths(Datefield,-1)

Hope this helps

Thanks & Regards

agni_gold
Specialist III
Specialist III
Author

My format is MM/DD/YY

and i want to subtract 1 day from date only .

maxgro
MVP
MVP

=date(date#('11/12/2011 12:00:00 AM', 'MM/DD/YYYY hh:mm:ss TT') - 1, 'MM/DD/YYYY hh:mm:ss TT')

2014-03-21 23_37_14-QlikView x64 - [C__Users_mgrossi_Desktop_Z.qvw_].png

its_anandrjs
Champion III
Champion III

Hi,

Do like this

Temp;

LOAD Date(Datem,'MM/DD/YYYY HH:MM:SS TT') AS Datem;

LOAD * Inline

[

Datem

11/12/2011 12:00:00 AM

];

And then in front end do this in any chart

=Date(Datem-1,'MM/DD/YYYY')

Hope this helps

Thanks & Regards