Skip to main content

Multiple Datetime Formats in Angular

· One min read

We have now added support for multiple datetime formats in our Angular SDKs. The following formats are supported:

  • RFC1123 Datetime (Mon, 15 Jun 2009 20:45:30 GMT)
  • RFC3339 Datetime (2016-03-13T12:52:32.123Z)
  • Unix Timestamp (1480809600)

You can specify the Type as Datetime and further choose the specific Datetime format from the Endpoint Settings page or Models page in the API Editor like so:

Screenshot Datetime

Screenshot Datetime Models

If you're using Date or Datetime as a Type in your API, you will need to download and include angular-moment and moment.js with the SDK as well.