I'm not sure how your application is handling dates but if you enter the command:
DAY_FORMAT READ x$
x$ will contain the date format currently in effect.
For this example, the format is "YYYYMMDD" and the dates are stored in the data files this way.
A Query on the invoice file will print Invoice Dates as 20251013, 20240131 etc. if the InvoiceDate$ column is included.
The query definition allows you to press the Add Formula button to define a new column. I defined it as follows:
Column Title: Formatted Invoice Date
Formula: DTE(InvoiceDate$:"%D %Ml, YYYY")
Width: 20
Here is a help link for the Query Formula Definition dialog:
Query Formula Definition
DAY_FORMAT READ x$
x$ will contain the date format currently in effect.
For this example, the format is "YYYYMMDD" and the dates are stored in the data files this way.
A Query on the invoice file will print Invoice Dates as 20251013, 20240131 etc. if the InvoiceDate$ column is included.
The query definition allows you to press the Add Formula button to define a new column. I defined it as follows:
Column Title: Formatted Invoice Date
Formula: DTE(InvoiceDate$:"%D %Ml, YYYY")
Width: 20
Here is a help link for the Query Formula Definition dialog:
Query Formula Definition