Thread

Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > REST json Date property f...

REST json Date property format RSS Feed

Thursday, June 16, 2016
Hi, can anyone explain in what format Date properties are returned over REST Api? (e.g. "StartDate": "/Date(1078128000000-0800)/",)
1 Replies
Jim R.Jim R.
re: Predrag Matuski on Thursday, June 16, 2016
Friday, June 17, 2016

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

Tagged
Statistics
  • Started: 6/16/2016
  • Last Reply: 6/17/2016
  • Replies: 1
  • Views: 2208
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.