Change the Date Format Using 4GL Script

By | August 31, 2020

As we know, Sage X3 supports multiple date formats as per the user’s requirement. The default date format in Sage X3 is set in setup–> Parameters. The developers who want to manipulate the date field value can use the date format using 4GL script. Also, there is an inbuilt string function that can be useful for the developers to manipulate date using 4GL.

In this blog, we will see how we can manipulate date format using the “format$”string function.

New Stuff: User Restrictions on Purchase Inquiry Screen

Syntax: format$(“format required”,”Date value”)

Let’s consider an example, format$(“YYYY[-]MM[-]DD”,date$) , Here we considered.

“YYYY-MM-DD” format and “date$” function gives us the current date and we change the current date format of the system to the required format in our code.

In the above format square brackets i.e. “[ ]” are used to represent the constant value or spaces between date characters. The given date format is stored as a string in the system.

Below are some examples of the date formats with output which helps you to change the date format in 4GL script.

So by using Format$string function 4GL scripts, developers can change the date format according to the user’s requirement& also can be used in 4GL.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature, Sage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.