On Mon, Dec 16, 2013 at 12:38 PM, manju16832003 <manju16832...@gmail.com> wrote: > Hi Shekhar, > Thanks for replying :-). > Yes your answer is justifiable. > DateFormatTransformer was a good consideration. However it doesn't out the > format I expected. Rather it outputs in the following manner > > <str name="publish_date">Tue Jun 05 00:00:00 MYT 2012</str> > > Here is DIH configuration > <field name="publish_date" column="publish_date" xpath="/RDF/item/date" > dateTimeFormat="yyyy-MM-dd'T'HH:mm:ss" locale="en"/> > > And also I tried this way > > <field name="publish_date" column="publish_date" xpath="/RDF/item/date" > dateTimeFormat="yyyy-MM-dd HH:mm:ss" locale="en"/>*-- without having 'T'* > > Output is the same :-) > > I expected date format to be *yyyy-MM-dd HH:mm:ss* >
That is unlikely. It won't give the same output. Did you re-index after changing the config? Did you specify the DateFormatTransformer on the <entity> too? -- Regards, Shalin Shekhar Mangar.