What does DTOS function mean in VF?

Returns a string date in yyyymmdd format from a specified date or datetime expression.

DTOS

Return value

Character; Role; letter

parameter

Data expression

Specifies a date expression, which DTOS () converts to an eight-bit string.

Text expression

Specifies a date-time expression, which DTOS () converts to an eight-bit string.

comment

This function is useful if you want to index the table by date or date-time field. It is the same as DTOC () with the parameter 1.

The string returned by DTOS () is not affected by setting the date or setting the century.

example

clear

DTOS (date ())