2 Return types - DAM v4.9.0
These are the supported return types at the time of writing (note that they are defined in lowercase):
Return types | Description |
---|---|
auto | No conversion is applied. |
string | The data is shown as text. |
int | Converts the data to a number. |
date | The SQL datetime is converted to a date format (hides the time)*. |
datetime | Formats the SQL datetime to something readable and keeps the time*. |
boolean | Converts the value to a Boolean. |
assettype | Parses an assetType integer to the corresponding string value (e.g. 1 to "Video"). |
filesize | Takes a byte value and formats it into something more readable (kB, MB, GB etc.). |
* Note: that date and datetime uses the culture of the current application language to format the date, which means that a user with English as their application language would see the date formatted differently than a user who is logged in with Danish as their application language.