SetDateTime
You use the SetDateTime keyword to call the DateTime or Date pop-up calendar specify the date and time.
Signature
The SetDateTime keyword supports the following signature:
SetDateTime(AppletRN|FieldRN|[RowNum]/[Active_Record],today(+/-))
Note the following about the SendDateTime keyword signature:
-
Active_Record obtains the row number of the active record during execution.
-
If the time is not specified, then the default time is 00:00:00. Value can be a DATETIME, a DATE, or a Variable.
Desktop Examples
The following table describes how to use the SetDateTime keyword to call the DateTime or Date pop-up calendar to provide the date and time in desktop applications.
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
Opportunity Form Applet - Child|CloseDate2 |
DD:MM:YYYY;01:01:2015 |
N/A |
Chooses a date in the Calendar pop-up window. |
Activity List Applet With Navigation|Planned |
Today |
N/A |
Sets the current date and time. |
Activity List Applet With Navigation|Planned|Active_Record |
Today |
N/A |
Sets the current date and time in the field of the active record. |
Activity List Applet With Navigation|Planned |
DD:MM:YYYY:HH:MM:SS;05:08:2014 : 10:17:20 |
N/A |
Sets the specified date and time. |
Activity List Applet With Navigation|Planned |
DD:MM:YYYY:HH:MM:SS;05:08:2014 : 10:17:20 |
N/A |
Sets the specified date and time. |
Opportunity Form Applet - Child|CloseDate2 |
Today+365 |
N/A |
Sets the specified date plus (+)365 days. |
Opportunity Form Applet - Child|CloseDate2 |
Today-365 |
N/A |
Sets the specified date minus (-)365 days. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR |
N/A |
Sets a specified date in the current year. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR-1 |
N/A |
Sets the specified date in the previous year. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR+2 |
N/A |
Sets the specified date in the current year plus (+)2. |
Mobile Examples
The following table describes how to use the SetDateTime keyword to call the DateTime or Date pop-up calendar to provide the date and time in mobile applications (on mobile devices).
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SHCE Sales Contact Opportunity List Applet - Mobile|Primary Revenue Close Date |
Today |
N/A |
Sets the current date and time. |
SHCE Sales Opportunity Quote List Applet ReadOnly - Mobile|Start Date |
Today+9 |
N/A |
Sets the current date and time. |
SHCE Quote Entry Applet - Mobile|StartDate |
DD:MM:YYYY;11:05:2014 |
N/A |
Sets the specified date in the target object. |
SHCE Sales Order Entry List Applet - Mobile|Order Date |
DD:MM:YYYY:HH:MM:SS; 11:5:2014:12:12:30 |
N/A |
Sets the specified date and time in the target object. |
SHCE Sales Order Entry List Applet - Mobile|Order Date |
DD:MM:YYYY:HH:MM:SS; 1:8:2014:12:30:20 |
N/A |
Sets the specified date in the target object. |