Get Date Formats
get
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/settings/outline/dateformats
Returns date formats of the outline from the specified database.
Request
Path Parameters
-
applicationName: string
Application name.
-
databaseName: string
Database name.
Response
Supported Media Types
- application/json
- application/xml
200 Response
OK
Date formats retrieved successfully.
400 Response
Bad Request
Failed to get the date formats. The application or database name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to get possible date formats for a cube.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample_Dynamic/databases/Basic/settings/outline/dateformats" -H "accept: application/json"-u %User%:%Password%
Example of Response Body
[
{
"name": "mon dd yyyy",
"value": "Apr 07 2020"
},
{
"name": "Month dd yyyy",
"value": "April 07 2020"
},
{
"name": "Month dd, yy",
"value": "April 07, 20"
},
{
"name": "Mon dd, yy",
"value": "Apr 07, 20"
},
{
"name": "dd Month yy",
"value": "07 April 20"
},
{
"name": "dd mm yy",
"value": "07 04 20"
},
{
"name": "dd Month yyyy",
"value": "07 April 2020"
},
{
"name": "dd mon yyyy",
"value": "07 Apr 2020"
},
{
"name": "yymmdd",
"value": "200407"
},
{
"name": "mm/dd/yy",
"value": "04/07/20"
},
{
"name": "mm/dd/yyyy",
"value": "04/07/2020"
},
{
"name": "dd/mm/yy",
"value": "07/04/20"
},
{
"name": "yy/mm/dd",
"value": "20/04/07"
},
{
"name": "yyyy/mm/dd",
"value": "2020/04/07"
},
{
"name": "mm-dd-yy",
"value": "04-07-20"
},
{
"name": "dd.mm.yy",
"value": "07.04.20"
},
{
"name": "dd-mm-yy",
"value": "07-04-20"
},
{
"name": "dd-mon-yy ",
"value": "07-Apr-20 "
},
{
"name": "yyyy-mm-dd",
"value": "2020-04-07"
},
{
"name": "yy.mm.dd",
"value": "20.04.07"
},
{
"name": "Long format",
"value": "Tuesday, April 07, 2020"
},
{
"name": "Short format",
"value": "4/7/20"
}
]