As we know, Sage X3 supports multiple date formats as per the users requirement. The default date format in Sage X3 is setup in setup–> Parameters. For the developers who wants to manipulate date field value, can use date functions in 4GL. Also there is inbuilt string function which can be useful for the developers to manipulate date using 4GL.
In this blog, we will see how we can manipulate date format using “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 current date and we change the current date format of system to 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 users requirement& also can used in 4GL.
Greytrix – a globally recognized and one of the oldest Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, 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 caters to a wide range of Sage X3, a Sage Business Cloud Solution, offerings. Our unique GUMU™ integrations include Sage X3 for Sage CRM, Salesforce.com, Dynamics 365 CRM and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3. Currently we are Sage X3 Implementation Partner in East Africa, Middle East, Australia, Asia, US, UK. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight and Letter of Credit and India Legislation for Sage X3 to Sage business partners, end users and Sage PSG worldwide.
Greytrix is a recognized Sage champion ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.
For more information on Sage X3 Integration and Services, please contact us at firstname.lastname@example.org, We will like to hear from you.