How to get the correct default value of date time fields Using Rest API?
Posted: Wed Nov 20, 2019 2:49 am
Hi Team ,
In bullhorn crm - TimeZone as IST and set the default datetime as 08/20/2017 01:00 PM. But I got incorrect default date time field value when i called below api .
Response :
When i convert milliseconds to date - "defaultValue": 1503201600000 - Sunday, August 20, 2017 4:00:00 AM
Can you help me to resolve this one.
In bullhorn crm - TimeZone as IST and set the default datetime as 08/20/2017 01:00 PM. But I got incorrect default date time field value when i called below api .
Code: Select all
<Endpoint>/meta/Candidate?fields=*&meta=full&BhRestToken=******
Code: Select all
{
"name": "dateAvailableEnd",
"type": "SCALAR",
"dataType": "Timestamp",
"dataSpecialization": "DATETIME",
"confidential": false,
"optional": true,
"label": "Available Until",
"required": false,
"readOnly": false,
"multiValue": false,
"defaultValue": 1503201600000,
"hideFromSearch": false,
"sortOrder": 5121,
"hint": "",
"description": "",
"systemRequired": false
}
Can you help me to resolve this one.