REST json Date property format

Thursday, June 16, 2016 12:31:19 PM
Hi, can anyone explain in what format Date properties are returned over REST Api? (e.g. "StartDate": "/Date(1078128000000-0800)/",)
1 Replies
Friday, June 17, 2016 6:43:45 PM
Avatar
re: Alchnemesis on Thursday, June 16, 2016 12:31:19 PM

Hi Predrag

SpiraTeam uses the WCF JSON serialization library from Microsoft .NET to convert dates into JSON. You can read more about this format here.

Basically, Dates in SpiraTeam are represented in JSON as "\/Date(number of ticks)\/".

The number of ticks is a positive or negative long value that indicates the number of ticks (milliseconds) that have elapsed since midnight 01 January, 1970 UTC.

Regards

Jim

Statistics
  • Started: Thursday, June 16, 2016 12:31:19 PM
  • Last Reply: Friday, June 17, 2016 6:43:45 PM
  • Replies: 1
  • Views: 2436