Re: dates with a different format in the db

2009-08-12 Thread Vokial
Thanks a lot! I'll try both the string filters and read carefully that part of the documentation.. eventually i'll try to create a custom subclass. Again you've been very helpful, thanks Malcolm! --~--~-~--~~~---~--~~ You received this message because you are sub

Re: dates with a different format in the db

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 00:24 -0700, Vokial wrote: > You've been very helpful, thanks. > The problem here is that i have to use these fields as proper > DateFields because i have to do some operations with these dates, like > making monthly/daily reports, searching entries in a specific period > of

Re: dates with a different format in the db

2009-08-12 Thread Vokial
You've been very helpful, thanks. The problem here is that i have to use these fields as proper DateFields because i have to do some operations with these dates, like making monthly/daily reports, searching entries in a specific period of time and so on... I guess i have to convert these strings t

Re: dates with a different format in the db

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 08:58 -0700, Vokial wrote: > Hi! > In a db i have, already filled up with data, i have a varchar field > which contains dates formatted like "mmdd". Is there a way to make > Django recognise that field as a proper DateField even if the > formatting is different than the u

dates with a different format in the db

2009-08-11 Thread Vokial
Hi! In a db i have, already filled up with data, i have a varchar field which contains dates formatted like "mmdd". Is there a way to make Django recognise that field as a proper DateField even if the formatting is different than the usual "-mm-dd" ? Because i can't alter the data in that