Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
stonecold111
Creator III
Creator III

how to get last second date of previous quarter using today

i mean i want 3/30/2017

By using this i am getting 3/31/2017 but iwant 3/30/2017

=QuarterEnd(today(),-1)

suggest me

1 Solution

Accepted Solutions
stonecold111
Creator III
Creator III
Author

date(DayStart(QuarterEnd(today(),-1),-1)+(22/24),'YYYY/MM/DD hh:mm:ss')

what about this .. i got it

View solution in original post

7 Replies
Anonymous
Not applicable

Date(QuarterEnd(today(),-1)-1,'MM/DD/YYYY')??

stonecold111
Creator III
Creator III
Author

and how to get 3/30/2017 21:00:00

Anonymous
Not applicable

If 21:00:00 is fixed just add it using '&'??

qlikview979
Specialist
Specialist

Hi

if that is fixed just do this

=Date(QuarterEnd(Today(),-1)-1,'MM/DD/YYYY')&'21:00:00'

stonecold111
Creator III
Creator III
Author

date(DayStart(QuarterEnd(today(),-1),-1)+(22/24),'YYYY/MM/DD hh:mm:ss')

what about this .. i got it

tresesco
MVP
MVP

I read your requirement

suresh kumar wrote:

and how to get 3/30/2017 21:00:00

and you got that using

date(DayStart(QuarterEnd(today(),-1),-1)+(22/24),'YYYY/MM/DD hh:mm:ss')

should not this be 21/24  ?

stonecold111
Creator III
Creator III
Author

yes ...