Focal Point
[SOLVED] Format/Edit Date Stamp

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

November 09, 2012, 09:22 AM
JThompson
[SOLVED] Format/Edit Date Stamp
Could someone please tell me how to reformat a date?

-SET &PRD_END_DT = &PRD_END_DT;

Returns: 20120630 00:00:00

I would like for it to NOT return the 00:00:00

Thank you,

This message has been edited. Last edited by: Kerry,


jeanna.thompson@okdhs.org
OMES|ISD|RDW
405-522-1213

WebFOCUS 7.7.05
Windows, All Outputs
November 09, 2012, 09:53 AM
JThompson
I think I may have found my answer using HDATE but havent gotten it to work yet ... any tips are appreciated Smiler


jeanna.thompson@okdhs.org
OMES|ISD|RDW
405-522-1213

WebFOCUS 7.7.05
Windows, All Outputs
November 11, 2012, 03:40 PM
Waz
Do you just want to get rid of the time component at a dialog manager level ?

Then you can use GETTOK or just an EDIT/MASK and keep the first 8 characters.


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!

November 13, 2012, 09:56 AM
GamP
-SET &DATE_PART = HCNVRT(HINPUT(&PRD_END_DT.LENGTH, &PRD_END_DT, 8, 'HYYMDS'), '(H8)', 8, 'A8');
This will check te validity of the date entered and return 0's if invalid and the yymd part if valid. No slash or - signs.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
November 13, 2012, 03:55 PM
JThompson
Thank you!


jeanna.thompson@okdhs.org
OMES|ISD|RDW
405-522-1213

WebFOCUS 7.7.05
Windows, All Outputs