Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Date conversion

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Date conversion
 Login/Join
 
Silver Member
posted
Hi All,

STOP_PYMT_LOC_DT-- >> M/D/YY-->> 07/21/2015
STOP_PYMT_LOC_TM--->> HH:MM:SS format

Need to concat these two fields to get the TS,

YYMD HH:MM:SS format

Can anyone please suggest for this.

Thanks in advance..!!!

Regards,
User1

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 37 | Registered: September 05, 2015Report This Post
Virtuoso
posted Hide Post
In a DEFINE block, create a new virtual field that concatenates the two. Something like:

DEFINE FILE xyz
create any format conversion fields necessary here, then do something like: 
TIMESTAMP/A20=STOP_PYMT_LOC_DT | ' ' | STOP_PYMT_LOC_TM;


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Silver Member
posted Hide Post
Hi,
Thanks for this...!!

Before concatenating i need to convert the date and time into alphanumeric format separately,not able to convert into alphanumeric format.

Is there any function available to convert date into alpha and time into alpha.

Thanks,
User1

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 37 | Registered: September 05, 2015Report This Post
Virtuoso
posted Hide Post
You will have to convert things first.

See:
CONCAT docs


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Silver Member
posted Hide Post
Hi,

Could you please tell me the functions which converts date to alpha and time to alpha.
Thanks,
User1


WebFOCUS 8
Windows, All Outputs
 
Posts: 37 | Registered: September 05, 2015Report This Post
Virtuoso
posted Hide Post
See the following links to get you going:

DATECVT

HCNVRT

HTIME


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Guru
posted Hide Post
Don't forget my new favorite

FPRINT

It works from multiple formats to alpha


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Date conversion

Copyright © 1996-2020 Information Builders