Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


+
Mix Nin 2013-03-18, 20:24
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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB