Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Extract Date part from ISO datetime format


Copy link to this message
-
Re: Extract Date part from ISO datetime format
There might be an easier way, but I bet you could whip up a solution with
the helpers in Piggybank:
http://svn.apache.org/viewvc/pig/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/datetime/
.

On Mon, Mar 18, 2013 at 1:24 PM, Mix Nin <[EMAIL PROTECTED]> wrote:

> How to get only Date part from ISOFROMAT
>
> I have input as below
>
> 2013-03-10T08:00:24.338Z
>
> How do I get output as 2013-03-10
>