
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to remove timestamp from monthend function?
Hi all,
Please an some one help me out with the below issue??
In my script I have a row as below:
Monthend(Month) as expiry_date,
the expiry date resultant is presently as 31/1/2016 11:59:59 PM but I want to remove the time stamp from the same in the script level or make the timestamp 0,so that my out put comes after reloading as only 31/1/2016.How is this possible?? please can someone help me??
regards,
Sahana
- Tags:
- new_to_qlikview
- « Previous Replies
-
- 1
- 2
- Next Replies »


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sahana,
Try: Date(Floor(Month),'DD/MM/YYYY') As expiry_date.
Take a look at Primer for QlikView Date fields for more details.
Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try below,
Date(Floor(MonthEnd(Month))) as Expiry_Date

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Date(Monthend(Month)) as expiry_date,

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sahana,
Try like this
Date(MonthEnd(Month))
or
Date(MonthEnd(Month), 'M/D/YYYY')
OR
Date(Floor(MonthEnd(Month)))
Regards,
Jagan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi thanks a lot
how can I do the same foe today() function in chart level.
I tried this:expiry_date-Date(Floor(today()))) it works ,but when I do
(expiry_date-Date(Floor(today()))))/365 it doesn't work... the time stamp doesn't become 12:00:00am
Please can you help me??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Date(expiry_date)-Date(today())

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
or you can try
age(expiry_date,today())

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Today() returns an integer, so the floor() would not be required for it. Rather try like:
Floor(expiry_date) - today()
But again if you divide the returned integer by 365, you might not get an integer. I could not understand the logic of expecting output 12:00:00.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with
Date(Floor(Month),'DD/MM/YYYY') As expiry_date // If you need the DD/MM/YYY formats

- « Previous Replies
-
- 1
- 2
- Next Replies »