Focal Point
[SOLVED] Is it possible to change the default year/month/date separator "/"?

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

May 23, 2013, 03:58 PM
bug
[SOLVED] Is it possible to change the default year/month/date separator "/"?
Webfocus will always display YYMD format dates as 'YYYY/MM/DD'. Is it possible to change the "/" separator to "-" system wise, like "YYYY-MM-DD', rather than to use functions?

Thanks.

This message has been edited. Last edited by: <Kathryn Henning>,


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
May 23, 2013, 05:49 PM
Waz
This is done in the format of the field.

e.g.
TABLE FILE EMPLOYEE
PRINT
COMPUTE HireDate1/YYMD = HIRE_DATE ;
COMPUTE HireDate2/YY-M-D = HIRE_DATE ;
COMPUTE HireDate2/YY.M.D = HIRE_DATE ;
COMPUTE HireDate2/YY|M|D = HIRE_DATE ;
END



Thanks Keysheet


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 23, 2013, 06:13 PM
bug
Oh...

Are these from Keysheet?


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
May 23, 2013, 07:21 PM
Waz
Yes, Its also in the documentations as well.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 23, 2013, 08:17 PM
Vivian
And you will find almost everything you would ever want to know about dates and date manipulation in (Almost) 1001 Ways To Work With Dates in WebFOCUS.

Vivian


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

May 24, 2013, 04:50 AM
Trilochan
You can change date format to any format as required by below code.

-SET &TODAY_DT= &YYMD;
-SET &TODAY_DT_NEW =EDIT(&TODAY_DT,'9999$$$$$$$$')|| '-' ||EDIT(&TODAY_DT,'$$$$99$$$$')|| '-' || EDIT(&TODAY_DT,'$$$$$$99') ;
-TYPE &TODAY_DT_NEW;  



WebFOCUS 7.6.1
Windows, All Outputs
May 25, 2013, 05:16 AM
FrankDutch
These answers are all in computes and defines but the question was if it can be changed in the default settings.

I would think that should be possible as well as the default sequence in stead from YYMD to DMYY or MDYY

I am sure it is somewhere in de documentation but where....

Prairi!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

May 26, 2013, 10:11 AM
George Patton
Well, I don't care about the separators so much, but to my mind there is only one logical way to write a date and that is YYMD. It's the SI standard, and I cannot fathom why various countries have a problem with making it a universal standard. I grew up with DDMYY, and I can at least understand that, but the American MDDYY drives me nuts.

OK, time to get off my hobby horse now ...


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
May 27, 2013, 07:17 AM
StuBouyer
The FORMAT style provided by Waz works for regular date fields:

TABLE FILE GGSALES
PRINT
DATE
DATE/D-M-YY
DATE/MBDBYY
DATE/YY.M.D
ON TABLE PCHOLD FORMAT HTML
END

gives

1997/04/01 01-04-1997 04 01 1997 1997.04.01
1996/12/01 01-12-1996 12 01 1996 1996.12.01
1997/03/01 01-03-1997 03 01 1997 1997.03.01
1996/11/01 01-11-1996 11 01 1996 1996.11.01


Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
May 27, 2013, 09:18 AM
Francis Mariani
George, I completely agree with you. Best-before dates are one example of completely indecipherable date formats. Glad to find someone else on the same hobby horse as mine!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 27, 2013, 06:36 PM
FrankDutch
I do agree on the YYMD standard too.

I will propose this to the politicians, maybe we can exchange some other things...
America goes Celsius and centimetre , kilometre , kilogram , and.... Maybe ...euro ?

We all already try to talk English or one of those dialects related to English.

And maybe our British ppl finally decide to drive at the right site of the road...

Hm...endless road.. What about SQL ..
Is that a standard query language?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

May 27, 2013, 06:46 PM
Waz
Agreed.


Except for driving on the right.

Left is better, how else will you have sword fights with other drivers ? Smiler

And you may have the Euro, but I think we need the Ozo.....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 28, 2013, 08:47 AM
Tony A
quote:
but I think we need the Ozo

I'd prefer the Ouzo Smiler

Sword fights? Yes, I'll give you that one (why else would ancient spiral staircases decend anti-clockwise?) but not lances!

Frank, we do drive on the "right" side of the road as opposed to the wrong one Wink

T
May 28, 2013, 11:59 AM
George Patton
And what about those times you take a business trip through several countries and accumulate a bunch of receipts that you then have to submit in an organised manner to your company. It drives me nuts to figure out the dates - specially since I procrastinate for months in filling out the expense report ...

At least the banks in Canada have come to their senses and now force people to write the date on their cheques in SI format. (But then who uses cheques nowadays ...?)


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP