This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
article-datelit.html
332 lines (312 loc) · 14.6 KB
/
article-datelit.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Salesforce Discord Community</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.12/css/all.css" integrity="sha384-G0fIWCsCzJIMAVNQPfjH08cyYaUtMwjJwqiRKxxE/rx96Uroj1BtIQ6MLJuheaO9" crossorigin="anonymous">
<link href="assets/css/style.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800' rel='stylesheet' type='text/css'>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/ico/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/ico/favicon-16x16.png">
<link rel="manifest" href="/assets/ico/site.webmanifest">
<link rel="mask-icon" href="/assets/ico/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/ico/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/assets/ico/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<!-- NAVBAR
================================================== -->
<div class="banner navbar navbar-static-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="index.html"><img src="assets/img/logo.png" width=70px></a>
<!-- Responsive Navbar -->
<div id="nav-main">
<ul id="menu" class="nav">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="wiki-index.html">Knowledge Base</a></li>
<li><a href="faq.html">Faq</a></li>
<!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns -->
</ul>
</div><!--/.nav-collapse -->
</div> <!-- /.container -->
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->
<!-- PAGE HEADER -->
<div id="page-header-container">
<div class="container">
<div class="page-header row">
<div class="span8">
<h1>The SFXD wiki</h1>
<p class="tagline">Literally one page</p>
</div>
</div>
</div>
</div>
<!-- PAGE CONTENT -->
<div id="wrap" class="container" role="document">
<div id="content" class="row">
<div id="main" class="single-post span12" role="main">
<article class="post type-post">
<header>
<h1 class="entry-title">Date Literals</h1>
<div class="post-meta">
<time class="updated" pubdate>Last Updated: June 13, 2018</time>
</div>
</header>
<div class="page-main">
<hr />
<p>When creating a report or a list view, you sometimes need to filter based on a dynamic value.
Say you want the records of last week for example. In a report, you could do that with the global filter on top of the reporting engine.
But say you want Opportunities closed between the Last month and the Last week ?</p>
<p>Well that's when Date Literals come in.</p>
<table>
<thead>
<tr>
<th>Literal</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td>YESTERDAY</td>
<td>Starts at 12:00:00 AM on the day before the current day and continues for 24 hours.</td>
</tr>
<tr>
<td>TODAY</td>
<td>Starts at 12:00:00 AM on the current day and continues for 24 hours.</td>
</tr>
<tr>
<td>TOMORROW</td>
<td>Starts at 12:00:00 AM. on the day after the current day and continues for 24 hours.</td>
</tr>
<tr>
<td>LAST WEEK</td>
<td>Starts at 12:00:00 AM on the first day of the week before the current week and continues for seven days.</td>
</tr>
<tr>
<td>THIS WEEK</td>
<td>Starts at 12:00:00 AM on the first day of the current week and continues for seven days.</td>
</tr>
<tr>
<td>NEXT WEEK</td>
<td>Starts at 12:00:00 AM on the first day of the week after the current week and continues for seven days.</td>
</tr>
<tr>
<td>LAST n WEEKS</td>
<td>Starts at 12:00:00 AM on the first day of the week that started n weeks before the current week, and continues up to 11:59 PM on the last day of the week before the current week.</td>
</tr>
<tr>
<td>NEXT n WEEKS</td>
<td>Starts at 12:00:00 AM on the first day of the week after the current week and continues for n times seven days.</td>
</tr>
<tr>
<td>n WEEKS AGO</td>
<td>Starts at 12:00:00 AM on the first day of the week that started n weeks before the start of the current week and continues for seven days.</td>
</tr>
<tr>
<td>LAST MONTH</td>
<td>Starts at 12:00:00 AM on the first day of the month before the current month and continues for all the days of that month.</td>
</tr>
<tr>
<td>THIS MONTH</td>
<td>Starts at 12:00:00 AM on the first day of the current month and continues for all the days of that month.</td>
</tr>
<tr>
<td>NEXT n MONTHS</td>
<td>Starts at 12:00:00 AM on the first day of the month after the current month and continues until the end of the nth month.</td>
</tr>
<tr>
<td>LAST n MONTHS</td>
<td>Starts at 12:00:00 AM on the first day of the month that started n months before the current month and continues up to 11:59 PM on the last day of the month before the current month.</td>
</tr>
<tr>
<td>n MONTHS AGO</td>
<td>Starts at 12:00:00 AM on the first day of the month that started n months before the start of the current month and continues for all the days of that month.</td>
</tr>
<tr>
<td>NEXT MONTH</td>
<td>Starts at 12:00:00 AM on the first day of the month after the current month and continues for all the days of that month.</td>
</tr>
<tr>
<td>LAST 90 DAYS</td>
<td>Starts at 12:00:00 AM 90 days before the current day and continues up to the current second. (The range includes today.)</td>
</tr>
<tr>
<td>NEXT 90 DAYS</td>
<td>Starts at 12:00:00 AM on the day after the current day and continues for 90 days. (The range does not include today.)</td>
</tr>
<tr>
<td>LAST n DAYS</td>
<td>Starts at 12:00:00 AM n days before the current day and continues up to the current second. (The range includes today. Using this date value includes records from n + 1 days ago up to the current day.)</td>
</tr>
<tr>
<td>NEXT n DAYS</td>
<td>Starts at 12:00:00 AM on the next day and continues for the next n days. (The range does not include today.)</td>
</tr>
<tr>
<td>n DAYS AGO</td>
<td>Starts at 12:00:00 AM on the day n days before the current day and continues for 24 hours. (The range does not include today.)</td>
</tr>
<tr>
<td>LAST QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the calendar quarter before the current calendar quarter and continues to the end of that quarter.</td>
</tr>
<tr>
<td>THIS QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the current calendar quarter and continues to the end of the quarter.</td>
</tr>
<tr>
<td>NEXT QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the calendar quarter after the current calendar quarter and continues to the end of that quarter.</td>
</tr>
<tr>
<td>LAST n QUARTERS</td>
<td>Starts at 12:00:00 AM on the first day of the calendar quarter n quarters ago and continues to the end of the calendar quarter before the current quarter. (The range does not include the current quarter.)</td>
</tr>
<tr>
<td>NEXT n QUARTERS</td>
<td>Starts at 12:00:00 AM on the first day of the calendar quarter after the current quarter and continues to the end of the calendar quarter n quarters in the future. (The range does not include the current quarter.)</td>
</tr>
<tr>
<td>n QUARTERS AGO</td>
<td>Starts at 12:00:00 AM on the first day of the calendar quarter n quarters before the current calendar quarter and continues to the end of that quarter.</td>
</tr>
<tr>
<td>LAST YEAR</td>
<td>Starts at 12:00:00 AM on January 1 of the year before the current year and continues through the end of December 31 of that year.</td>
</tr>
<tr>
<td>THIS YEAR</td>
<td>Starts at 12:00:00 AM on January 1 of the current year and continues through the end of December 31 of the current year.</td>
</tr>
<tr>
<td>NEXT YEAR</td>
<td>Starts at 12:00:00 AM on January 1 of the year after the current year and continues through the end of December 31 of that year.</td>
</tr>
<tr>
<td>n YEARS AGO</td>
<td>Starts at 12:00:00 AM on January 1 of the calendar year n years before the current calendar year and continues through the end of December 31 of that year.</td>
</tr>
<tr>
<td>LAST n YEARS</td>
<td>Starts at 12:00:00 am on January 1, n+1 years ago. The range ends on December 31 of the year before the current year.</td>
</tr>
<tr>
<td>NEXT n YEARS</td>
<td>Starts at 12:00:00 AM on January 1 of the year after the current year and continues through the end of December 31 of the nth year.</td>
</tr>
<tr>
<td>LAST FISCAL QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal quarter before the current fiscal quarter and continues through the last day of that fiscal quarter. The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>THIS FISCAL QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the current fiscal quarter and continues through the end of the last day of the current fiscal quarter. The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>NEXT FISCAL QUARTER</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal quarter after the current fiscal quarter and continues through the last day of that fiscal quarter. (The range does not include the current quarter.) The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>LAST n FISCAL QUARTERS</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal quarter n fiscal quarters ago and continues through the end of the last day of the previous fiscal quarter. (The range does not include the current fiscal quarter.) The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>NEXT n FISCAL QUARTERS</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal quarter after the current fiscal quarter and continues through the end of the last day of the nth fiscal quarter. (The range does not include the current fiscal quarter.) The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>n FISCAL QUARTERS AGO</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal quarter n fiscal quarters before the current fiscal quarter and continues through the end of the last day of that fiscal quarter.</td>
</tr>
<tr>
<td>LAST FISCAL YEAR</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal year before the current fiscal year and continues through the end of the last day of that fiscal year. The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>THIS FISCAL YEAR</td>
<td>Starts at 12:00:00 AM on the first day of the current fiscal year and continues through the end of the last day of the fiscal year. The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>NEXT FISCAL YEAR</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal year after the current fiscal year and continues through the end of the last day of that fiscal year. The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>LAST n FISCAL YEARS</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal year n fiscal years ago and continues through the end of the last day of the fiscal year before the current fiscal year. (The range does not include the current fiscal year.) The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>NEXT n FISCAL YEARS</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal year after the current fiscal year and continues through the end of the last day of the nth fiscal year. (The range does not include the current fiscal year.) The fiscal quarter is defined on the Fiscal Year page in Setup.</td>
</tr>
<tr>
<td>n FISCAL YEARS AGO</td>
<td>Starts at 12:00:00 AM on the first day of the fiscal year n fiscal years ago and continues through the end of the last day of that fiscal year.</td>
</tr>
</tbody>
</table></div></div>
</article>
</div>
</div><!-- /#content -->
</div><!-- /#wrap -->
<!-- FOOTER -->
<footer>
<div class="main-footer">
</div>
<!-- Sub footer -->
<div class="sub-footer">
<div class="container">
<div id="social-icons">
<ul>
<li class="social-icon discord">
<a class="fade-img" href="http://discord.gg" target="_blank" rel="tooltip" title="Discord">
<img src="assets/img/social/icons_discord.png" alt="Discord" />
</a>
</li>
<li class="social-icon salesforce">
<a class="fade-img" href="http://www.salesforce.com" target="_blank" rel="tooltip" title="Salesforce">
<img src="assets/img/social/icons_salesforce.png" alt="Salesforce" />
</a>
</li>
</ul>
</div>
<div class="copyright-text">Copyright 2018. Powered by <a href='http://github.io/'>GitHub</a>
</div>
</div>
</div>
</footer>
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap-transition.js"></script>
<script src="assets/js/bootstrap-alert.js"></script>
<script src="assets/js/bootstrap-modal.js"></script>
<script src="assets/js/bootstrap-dropdown.js"></script>
<script src="assets/js/bootstrap-tab.js"></script>
<script src="assets/js/bootstrap-tooltip.js"></script>
<script src="assets/js/bootstrap-popover.js"></script>
<script src="assets/js/bootstrap-button.js"></script>
<script src="assets/js/bootstrap-collapse.js"></script>
<script src="assets/js/bootstrap-carousel.js"></script>
<script type="text/javascript" src="assets/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="assets/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="assets/js/application.js"></script>
<script src="assets/js/holder/holder.js"></script>
</body>
</html>