for just the date part, to numeric

 '/' ".&>@cut '22/11/2018' 
22 11 2018

or in the usual J format, (with assumption of your consistent format)

 '/'&(2 1 0 { ".&>@cut) '22/11/2018' 
2018 11 22



________________________________
From: Rúben Cabaço <[email protected]>
To: [email protected] 
Sent: Friday, November 30, 2018 7:15 PM
Subject: [Jprogramming] Byte conversion



What is the best way to convert bytes of numbers and dates to appropriate

values?


The data I am trying to convert is in the following format:

1;2242;22/11/2018;39.70;


I have managed to read it, but am stumbling in the conversion part. Using

". does not seem to be an option since I get a domain error on the date,

which makes sense.


Perhaps I should be trying to apply ". on those values that are appropriate

and some other primitive on the date. How would I do this?


Thanks,

Rúben

----------------------------------------------------------------------

For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to