2 Replies Latest reply: Aug 17, 2012 6:41 AM by Mari Testing RSS

    How to get previous month first and last date?




      I would like to limit data that is imported into QlikView and for that we have a XML function that needs startdate=YYYYMMDD and enddate=YYYYMMDD set up.


      I can currently change it manually to the first day of the previous month and to the last day of the previous month or take it from a variable. But as people accesing template over web cannot change variable, then reload is using date set there before.


      Is there an function to add previous month first date and last date in format YYYYMMDD?


      For example today it would give me 20120701 and 20120731.

      In September it would give me 20120801 and 20120831?



      Thank you in advance for any help!