I have a |
delimited file, which has values like 150330
, which represents date. To standardize, I need to convert this values as 2015-03-30
. I need to do it in Pig, due to few more conversions.
Tried ToDate
& DateTime
functions, without any luck.
Any suggestion?
you can use pig function in following way
output is (2015-03-30)