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?
If you need to convert "150330" into "2015-03-30", this is not a date problem but rather String manipulation
SUBSTRINGto get 15, 03, 30CONCATto join all the substring.However, as said @murali-rao, you have to know if your dealing with 19xx or 20xx dates.