This function calculates a date based on the given input date and offset.
| Arguments: |
|
|---|---|
| Return-type : | java.lang.String |
| Returns: | Date after applying offset and format. |
For details on all supported format/patterns refer to the following link.
Example:
=DATEOFFSET(NOW(), -3) - Current date minus 3 months.
=DATEOFFSET(NOW(), 3) - Current date plus 3 months.
=DATEOFFSET(NOW(), -1, 2, 3) - Current date minus 1 month, plus 2 days and 3 years.
=DATEOFFSET("15/03/2007", 0, 0, -1, "yyyyMM", "dd/MM/yyyy") -
Input date 15/03/2007 minus 1 year, result is "200603".
Converts an excel number date representation to human readable String format.
| Arguments: |
|
|---|---|
| Return-type : | java.lang.String |
| Returns: | String representation of Date. |
For details on all supported format/patterns refer to the following link.
Example:
=EXCEL_DATE_TO_STRING(39980) - Output: 20090616
=EXCEL_DATE_TO_STRING(39980, "yyyy/MM/dd") - Output: 2009/06/16
Returns the current date in string format.
| Arguments: |
|
|---|---|
| Return-type : | java.lang.String |
| Returns: | The current date in string format. |
For details on all supported format/patterns refer to the following link.
Example:
=NOW("dd-MM-yyyy")