Active Topics
Active Posts
Unanswered Posts
Search
Advanced
You are not logged in. [
Log In
]
Adagio Home Page
»
Forums
»
General Discussion
»
Technical Support
» Help with Gridview Formula - Date/Time
Register User
Forum List
Calendar
Active Topics
Search
FAQ
Topic Options
#49425
-
03/30/16
06:42 AM
Help with Gridview Formula - Date/Time
SusanTennier
Adagio Maestro
Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Instead of saying:
{Last Rcpt Date} < DATE(2014,04,01)
how can I say:
{Last Rcpt Date} < 2 years
or:
{Last Rcpt Date} < 6 months
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario
Top
#49426
-
03/30/16
07:25 AM
Re: Help with Gridview Formula - Date/Time
[
Re: SusanTennier
]
Steve Schwartz
Adagio God
Registered: 03/10/02
Posts: 4509
Loc: Wynnewood, PA
Hi Susan
What I would do is to create a formula called "Cutoff Date" like this:
QUERYDATE("Enter the Cutoff Date")
which will prompt for a date whenever you refresh the report, and then use this formula in the filter:
{Last Rcpt Date} < {Cutoff Date}
Steve
Top
#49427
-
03/30/16
07:31 AM
Re: Help with Gridview Formula - Date/Time
[
Re: Steve Schwartz
]
Michael Mulrooney
Adagio Virtuoso
Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
Using Today()- 730 or Today()-182 works if close is OK, otherwise more involved date calculations will be needed.
Top
#49431
-
03/30/16
11:05 AM
Re: Help with Gridview Formula - Date/Time
[
Re: SusanTennier
]
Retired_Guy
Adagio Master
Registered: 03/16/99
Posts: 10504
Loc: Canada
You can combine Steve and Michael's suggestions to:
Code:
{Last Rcpt Date} < QUERYDATE("Cutoff date?", TODAY()-730)
_________________________
Andrew Bates
Top
#49525
-
04/06/16
12:45 PM
Re: Help with Gridview Formula - Date/Time
[
Re: Retired_Guy
]
SusanTennier
Adagio Maestro
Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Thanks, Michael's answer is exactly what I needed!
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario
Top
Previous Topic
Index
Next Topic
Preview
Hop to:
General Discussion ------
General Inquiries Forum
Technical Support
Moderator:
Christa_Meissner
Print Topic
Switch to Threaded Mode
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
Who's Online
0 registered (), 48 Guests and 1 Spider online.
Key:
Admin
,
Global Mod
,
Mod
Forum Stats
1865
Members
5
Forums
14458
Topics
70633
Posts
Max Online: 432 @
01/20/25
10:17 PM
April
Su
M
Tu
W
Th
F
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Privacy statement
·
Board Rules
·
Mark all read
Default Style
Forum-Style
Forum-Style-New
Softrak_Blue
Contact Us
·
Adagio Home Page
·
Top