Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

how to count number of days from April to till date(today())

Hi All,

How to count number of days from 1st of April to till date .will it be done at Script level or frontend ...

thanks

1 Solution

Accepted Solutions
kkkumar82
Specialist III
Specialist III

then change the year in the above code to 2017

floor(Today()) - MakeDate(2017, 4)

View solution in original post

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

This will count number of days:

MakeDate(2018, 4) - floor(yourdatefield)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
kunkumnaveen
Specialist
Specialist
Author

HI, when I use your code

=MakeDate(2018, 4) - floor(today())  I am getting 33 as Out put .but it has to be more then 200 days

kkkumar82
Specialist III
Specialist III

Is it April 2017 ?

kunkumnaveen
Specialist
Specialist
Author

From Calendar date 1st April 2017 to today()

kkkumar82
Specialist III
Specialist III

then change the year in the above code to 2017

floor(Today()) - MakeDate(2017, 4)

pradosh_thakur
Master II
Master II

today() - makedate(2017,4)

or

interval(today() - makedate(2017,4).'DD')

Learning never stops.