Focal Point
[CLOSED] Date conversion
September 14, 2015, 06:41 AM
User1[CLOSED] Date conversion
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
September 14, 2015, 10:30 AM
CoolGuyIn 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.
September 14, 2015, 12:42 PM
User1Hi,
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
September 14, 2015, 01:05 PM
CoolGuyYou will have to convert things first.
See:
CONCAT docs
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
September 14, 2015, 01:11 PM
User1Hi,
Could you please tell me the functions which converts date to alpha and time to alpha.
Thanks,
User1
WebFOCUS 8
Windows, All Outputs
September 14, 2015, 01:19 PM
CoolGuySee the following links to get you going:
DATECVT HCNVRT HTIME
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
September 15, 2015, 08:04 PM
StuBouyerDon't forget my new favorite
FPRINTIt works from multiple formats to alpha
WebFOCUS 8.2.03 (8.2.06 in testing)