-
Notifications
You must be signed in to change notification settings - Fork 8
/
date.js
54 lines (49 loc) · 1.25 KB
/
date.js
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
/**
* SuiteScript Date APIs
*
* Use these APIs to manipulate standard JavaScript Date and String objects
*/
/**
* Convert a String into a Date object
*
* @param {string} str date string in the user's date format, timeofday format, or datetime format
* @param {string} [format='date'] format type to use: date|datetime|timeofday
*
* @return {Date}
* @since 2005.0
*/
function nlapiStringToDate(str, format) {
}
/**
* Convert a Date object into a formatted String
*
* @param {Date} date date object being converted to a string
* @param {string} [format='date'] format type to use: date|datetime|timeofday
*
* @return {string}
* @since 2005.0
*/
function nlapiDateToString(date, format) {
}
/**
* Add/subtract days to a Date object and returns a new Date
*
* @param {Date} date date object used to calculate the new date
* @param {int} days the number of days to add to this date object
*
* @return {Date}
* @since 2008.1
*/
function nlapiAddDays(date, days) {
}
/**
* Add/subtract months to a Date object and returns a new Date
*
* @param {Date} date date object used to calculate the new date
* @param {int} months the number of months to add to this date object
*
* @return {Date}
* @since 2008.1
*/
function nlapiAddMonths(date, months) {
}