Focal Point
Changing Date Separator

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7211009132

June 10, 2007, 02:41 PM
dballest
Changing Date Separator
I need to have the date separator to be a "/" instead of a "-" in a datetime field.

TABLE FILE FILE1
STDVALUEEFFECTIVEDATE
COMPUTE TEMP3/HMDYI = STDVALUEEFFECTIVEDATE;
END

Result:

STDVALUEEFFECTIVEDATE TEMP3
2004-10-01 06:00:00 10-01-04 06:00

I need the format to be 10/01/04 06:00

Thanks in advance.


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
June 11, 2007, 03:21 AM
Alan B
It could be your setting of DTSTANDARD.

A setting of ON/STANDARD/STANDARDU gives ISO compatability and uses the '-' as a date seperator.

Try issuing SET DTSTANDARD=OFF to get the '/' in the date portion.


Alan.
WF 7.705/8.007
June 12, 2007, 12:18 PM
dballest
Thanks Alan, it worked!


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE