On 8/06/2006 5:50 AM, aqmaiya wrote:
> Hello,
> there is string value 'Dec 06, 2000' I want to convert that string
> date to SHORT FORMAT like '2000-12-06-. Please help me how do I do
> that? I'm new in Jython.
> Thanks,
> aqmaiya
>
Two ways (at least):
(1) check out the strptime and strftime (
aqmaiya wrote:
> there is string value 'Dec 06, 2000' I want to convert that string
> date to SHORT FORMAT like '2000-12-06-. Please help me how do I do
> that?
you mean ISO format, right?
the easiest way is probably to use the time.strptime module to parse the
original string into a time tupl