WLJS LogoWLJS Notebook

ToEntity

ToEntity[expr] returns an entity object corresponding to the given expression.

ToEntity[expr,type] returns an entity object of the specified type corresponding to expr.

Examples

Convert a date to an entity:

ToEntity[DateObject[{2024, 1, 1}]]

Please visit the official Wolfram Language Reference for more details.

On this page