[thelist] Date & time formatting

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Fri Apr 14 06:59:43 CDT 2006

Or you may write a method that plays with some regular expression at worst:

Matching the pattern 2005-01-01 00:00:00

with some regex like;

(\d{4,4})-(\d{2,2})-(\d{2,2}) (\d{2,2}):(\d{2,2}):(\d{2,2})

should not be that hard. (note that the reg ex is a rather quick and dirty
one and it may be constructed in a more elegant manner.)

Or some string slicing/splitting I dunno.

If you write the code once you could then use it everwhere and tweak it to
your needs. That's what's libraries are for :)

Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/

More information about the thelist mailing list