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");
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
ReportPDF application
|
allMacros onExecute
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterInsert onAfterUpdate onBeforeDelete onBeforeInsert onBeforeUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onFooter onHeader onInit
|
ajaxFieldonClick allMacros onApplicationInit onFooter onGroupBy onHeader onInit onNavigate onRecord
|
allMacros onFilterInit onFilterRefresh onFilterSave onFilterValidate
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onBeforeDelete onBeforeDeleteAll onBeforeInsert onBeforeInsertAll onBeforeUpdate onBeforeUpdateAll onClick onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onClick onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onFooter onHeader onInit onRecord
|
|