Focal Point
[CLOSED] Regarding Time format

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

August 13, 2009, 05:48 PM
Enigma006
[CLOSED] Regarding Time format
Hai all..

I have been working on time field and partially successully..

I have a field in HYYMDS format and I extracted date using HDATE. I am working on how to extract time from this.
Can anyone help me on this?

I have one more time field in I11 format. how can I show this in 05:15:40 format?
I have seen reverse of this but not the above.
Please suggest me something..

Thanks..

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


8.1.05
HTML,PDF,EXL2K, Active, All
August 13, 2009, 10:56 PM
jimster06
I guess that I would try HPART to extract the hour, minute, and second components.

Click on 'Search the Technical Documenation Library' in the upper right of this screen for the syntax.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
August 14, 2009, 04:57 AM
GamP
For the HYYMDS field, Jim is right - use HPART.
For the I11 field, it all depends on how the time is stored in that field.
It may be possible to convert it to a real date/time field, after which you could use the HPART again.
It may also be possible that the time in this field is already in there as required, only without the :. Then it would be enough to convert to alpha and add the : at the correct places.
Can't tell which direction to go without more info.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988