Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting from a HYYMDS field

Status
Not open for further replies.

JoaoPinto

Programmer
Feb 12, 2003
26
US
I'm trying to extract the day, month and year from a HYYMDS field (from Oracle).

But the normal Date functions don't see to work. Is there a different way to handle this type?
 
Yes, there is a different way to handle H-format dates.
To extract a component from an H format date in numeric format, use HPART. The various functions that operate on H-format dates begin with H (curiously enough).
 
If you only ever want the day, month and year from this field then you can change the format in the mfd.

From

HYYMDS,HYYMDS

to

DMYY,DATE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top