Focal Point
[SOLVED] Date/time conversion

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

April 19, 2012, 10:55 AM
Haripriya
[SOLVED] Date/time conversion
Hi,

Does any one know jow to convert a date which is in this "HYYMDS" to "YY-M" format.

Waiting for the replies Smiler

Thank you,
Priya

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


WebFOCUS 7.7
Windows, All Outputs
April 19, 2012, 02:46 PM
Dan Satchell
Try this:

DEFINE FILE CAR
 XDATE/HYYMDS WITH COUNTRY = DT(&YYMD 09:43:07);
 YDATE/YY-M = HDATE(XDATE,'YYMD');
END
-*
TABLE FILE CAR
 PRINT XDATE YDATE
 WHERE RECORDLIMIT EQ 1 ;
END



WebFOCUS 7.7.05
April 20, 2012, 08:44 AM
GamP
You could also put an order in for the book called 'Almost 1001 Ways to work with Dates'. Costs only 25 $ and it is worth that amount ten times over.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
April 22, 2012, 06:01 PM
Waz
RTFM

Read The Functions Manual


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!

April 23, 2012, 11:38 AM
Haripriya
Thank you All ...it worked ...i tried Dan's suggestion ...


WebFOCUS 7.7
Windows, All Outputs
April 23, 2012, 11:57 AM
Tony A
Priya,

For your own benefit, it might be sensible to have a digital copy of the "Using Functions" manual so that you have quick access to answers like this (also remember that the search above will help you find answers too).

To get a copy of the manual, go to http://www.informationbuilders.com and hover over the link for "Services and Support". Then move your cursor over the link for "Documentation & Technical Library". In the left hand column, click the top option - "Technical Documentation Library" - this will give you a page that will allow you to search the technical documents. Use the search string "Using Functions" and you should be able to identify the correct manual for the version that you use.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10