sc_date_conv({Field_Date}, "Input_Format", "Output_Format")

This macro converts the date field passed as parameter with an input format to another field with an output format.

Parameter
Description
A or Y Used to reference years.
M Used to reference Months.
D Used to reference Days.
Db_Format Used to get the Dadabase date format.

Ex. 1: Converts the date from "dd/mm/yyyy" format to the "yyyymmdd" format.
{field_date} = sc_date_conv({field_date}, "dd/mm/aaaa", "aaaammdd");

Ex. 2: Converts the date from the database native format to "dd/mm/yyyy" format.
{field_date} = sc_date_conv({field_date}, "db_format", "dd/mm/aaaa");

Ex. 3: Converts the date from the "dd/mm/yyyy" format to the Database native format.
{field_date} = sc_date_conv({field_date}, "dd/mm/aaaa", "db_format");