ddavisqa / google-refine

Automatically exported from code.google.com/p/google-refine
0 stars 0 forks source link

toString(date_val, 'yyyy-MM-dd') doesn't seem to work #312

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Docs say that you can pass a format to toString and that will be used in case 
date_val is a date object.

I can't make it work in Version 2.0 [r1836]

Original issue reported on code.google.com by eduardocereto on 23 Jan 2011 at 8:10

GoogleCodeExporter commented 8 years ago
I believe this has been fixed in the trunk version. Would you mind trying the 
trunk version?

http://code.google.com/p/google-refine/wiki/GetDevelopmentVersion

Original comment by dfhu...@gmail.com on 24 Jan 2011 at 2:42

GoogleCodeExporter commented 8 years ago
Oh my. I'll need to setup all this java env thing I'm not used to. 
I'll try to do that when I have some time. 

But for now I got a ugly workaround that worked for me, but may not work for 
others with the same issues and in the need of a more complex date format.

    value.datePart('year') + '-' + value.datePart('month') + '- ' + value.datePart('day')

It won't give you the same results, but may work for others with same issue 
till a new stable is released.

Original comment by eduardocereto on 24 Jan 2011 at 6:54

GoogleCodeExporter commented 8 years ago
There is a 2.1 release candidate available now that you can use to test whether 
this has been fixed.

Please let us know your results.

Original comment by tfmorris on 14 Jun 2011 at 6:41

GoogleCodeExporter commented 8 years ago
Just tried it out, and it seems fine to me. feel free to close the ticket down.

Original comment by ecer...@cardinalpath.com on 14 Jun 2011 at 7:23

GoogleCodeExporter commented 8 years ago
By the way, I just noticed that I replied from my corp mail. But I'm the same 
person. 

Original comment by eduardocereto on 14 Jun 2011 at 7:24

GoogleCodeExporter commented 8 years ago
Thanks for retesting.  The final 2.1 release should be available shortly.

Original comment by tfmorris on 14 Jun 2011 at 7:42