AgileApps Support Wiki Pre Release

Difference between revisions of "Date"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
(Redirected page to Dates and Times#Date/Time Formats)
Β 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Day, Date and Time-related [[Formula Functions]].
#REDIRECT [[Dates and Times#Date/Time Formats]]
:''Learn more:'' [[#Date/Time Formats|Date/Time Formats]]
Β 
{| border="0" cellpadding="5" cellspacing="0" width="50%"
|-valign="top"
|
[[#DATE|DATE]]<br>
Β 
[[#DATEADD|DATEADD]]<br>
Β 
[[#DATECOMP|DATECOMP]]<br>
Β 
[[#DATEPART|DATEPART]]<br>
Β 
[[#DATESUB|DATESUB]]<br>
Β 
[[#DATEVALUE|DATEVALUE]]
Β 
[[#DAY|DAY]]<br>
Β 
|
[[#HOUR|HOUR]]<br>
Β 
[[#MINUTE|MINUTE]]<br>
Β 
[[#MONTH|MONTH]]<br>
Β 
[[#NOW|NOW]]<br>
Β 
[[#NULLDATE|NULLDATE]]<br>
Β 
[[#NULLTIME|NULLTIME]]<br>
Β 
[[#SECOND|SECOND]]<br>
Β 
|
[[#TIME|TIME]]<br>
Β 
[[#TIMEPART|TIMEPART]]<br>
Β 
[[#TIMEVALUE|TIMEVALUE]]<br>
Β 
[[#TODAY|TODAY]]<br>
Β 
[[#WEEKDAY|WEEKDAY]]<br>
Β 
[[#YEAR|YEAR]]<br>
|}
Β 
==Day, Date and Time-related Formula Functions==
Β 
===DATE===
{{:DATE}}
Β 
===DATEADD===
{{:DATEADD}}
Β 
===DATECOMP===
{{:DATECOMP}}
Β 
===DATEPART===
{{:DATEPART}}
Β 
===DATESUB===
{{:DATESUB}}
Β 
===DATEVALUE===
{{:DATEVALUE}}
Β 
===DAY===
{{:DAY}}
Β 
===HOUR===
{{:HOUR}}
Β 
===MINUTE===
{{:MINUTE}}
Β 
===MONTH===
{{:MONTH}}
Β 
===NOW===
{{:NOW}}
Β 
===NULLDATE===
{{:NULLDATE}}
Β 
===NULLTIME===
{{:NULLTIME}}
Β 
===SECOND===
{{:SECOND}}
Β 
===TIME===
{{:TIME}}
Β 
===TIMEPART===
{{:TIMEPART}}
Β 
===TIMEVALUE===
{{:TIMEVALUE}}
Β 
===TODAY===
{{:TODAY}}
Β 
===WEEKDAY===
{{:WEEKDAY}}
Β 
===YEAR===
{{:YEAR}}
Β 
==Date/Time Formats==
Dates are used throughout the platform, in Appointments, as Start/End Dates in Tasks, Expected Close Date, Estimated Start/End Date, Date Due, etc.
Β 
Default formats are specified in the [[Company Information]] section of the Setup area. Admins and Users can change the default selection for an individual in the [[User Settings]].
Β 
===Date Format===
Β 
These Date Formats are available in the platform:
Β 
: <tt>mm/dd/yyyy &nbsp;&nbsp; dd/mm/yyyy &nbsp;&nbsp; yyyy/dd/mm &nbsp;&nbsp; yyyy/mm/dd</tt>
: <tt>mm-dd-yyyy &nbsp;&nbsp; dd-mm-yyyy &nbsp;&nbsp; yyyy-dd-mm &nbsp;&nbsp; yyyy-mm-dd</tt>
: <tt>mm.dd.yyyy &nbsp;&nbsp; dd.mm.yyyy &nbsp;&nbsp; yyyy.dd.mm &nbsp;&nbsp; yyyy.mm.dd</tt>
Β 
;where:
:<tt>mm</tt> is "Month", <tt>dd</tt> is "Day", <tt>yyyy</tt> is Year
:and delimters are:
::<tt>(/)</tt> slash, or stroke
::<tt>(-)</tt> dash, or hyphen
::<tt>(.)</tt> period, dot, or full stop
Β 
===Time Format===
Users can choose a 12-hour clock with AM/PM, or a 24-hour clock.
Β 
Using a 12-hour format, '10:00 AM' is created with this syntax:
:{| border="0" class="tightrows"
| '''Format''' || '''Type''' || '''Examples'''
|-
|
<tt>hh:mm a<br>
a hh:mm<br>
HH:mm</tt>
|
&nbsp;&nbsp; 12-hour clock<br>
&nbsp;&nbsp; 12-hour clock<br>
&nbsp;&nbsp; 24-hour clock<br>
|
&nbsp;&nbsp; 3:30 AM, 3:30 PM<br>
&nbsp;&nbsp; AM 3:30, PM 3:30<br>
&nbsp;&nbsp; 3:30, 15:30
|}
Β 
===Date/Time Strings===
{{:Date/Time Strings}}
Β 
==For Developers==
Β 
===Date Expressions===
:{| border="0" class="tightrows"
| width="375"|'''Expression''' || '''Result'''
|-valign="top"
|<tt>DATESUB('06/13/2009', 2, 'MONTH')</tt>
| <tt>= '04/13/2009'</tt>
|-valign="top"
|<tt>DATESUB(end_date, MONTH(start_date), 'MONTH')</tt>
| <tt>= '04/23/2009'</tt>
|-valign="top"
|<tt>DATESUB(end_date, start_date)</tt>
| <tt>= 140</tt> (days)
|-valign="top"
|<tt>MONTH(end_date) - MONTH(start_date)</tt>
| <tt>= 4</tt> (months)
|}
Β 
Where:
:<tt>end_dateΒ  = '06/23/2009'</tt>
:<tt>start_date = '02/03/2009'</tt> and <tt>MONTH(start_date) = 2</tt>
Β 
===Long Date Format===
{{:Long Date Format}}
Β 
Β 
[[Category:Glossary]]

Latest revision as of 00:29, 19 October 2013