Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Provide a guidance for datetime #8

Closed MassimoC closed 6 years ago

MassimoC commented 6 years ago

In the Data Contracts section we should provide which format to be used for datetime

samneirinck commented 6 years ago

The wild west of datetime formats :). Personally I prefer an ISO 8601 notation, like 2012-04-23T18:25:43.511Z.

I've also used millisecond since 1970, but I find it cumbersome as a consumer, since I always need to convert it to make it readable.

tomkerkhove commented 6 years ago

Agreeing with @samneirinck, feels like the best approach to me.

MassimoC commented 6 years ago

agree with @samneirinck ... waiting for the first PR from him ;)