Skip to content
On this page

Date objects

In any instance where a ts-dax function requires a date as a parameter, you can choose to supply:

  • a Date object,
  • a string,
  • or a number.

If you supply a string or a number, it will be passed to a new Date(). This means that you can supply a date/timestamp string, or an integer representing the number of milliseconds since January 1, 1970.

INFO

See the JavaScript documentation on Date() constructor parameters for more details!

Released under the MIT License. Not affiliated with Microsoft.