Re: Todays date in a field?



try in calculated field:

import time;
return time.strftime( "%Y-%m-%d" );

for today, works for me.
Sorry but speak spanish


El jue, 03-12-2009 a las 09:11 +1300, Andrew Ruthven escribió:
Hey,

Another little niggle I'm working on.  I've added a "notes"t table and
want it to have a date "created" field, which defaults to today.  I've
tried setting "calculate value" on the field, and setting it to:

import datetime

return datetime.date.today()

But when I hit the "test" button, glom crashes.  Is this something that
people do?

Cheers!

_______________________________________________
glom-devel-list mailing list
glom-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/glom-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]