On Mon, Sep 29, 2008 at 5:08 PM, Peter <[EMAIL PROTECTED]> wrote: > > Hi folks, > I want to check a form when it submitted to see whether it contains > an input called 'lastUpdate' > > If lastUpdate is blank I want to populate it with the current time > (preferably as the number of milliseconds since 1970 so js can load it > easily, date:"U" seems to cover it) > > If it isn't blank I want to use it's value to create a date in > django. This is the bit that is giving me grief. > > I know it's gotta be ultra simple but I haven't found it. >
It isn't clear to me what, exactly, is giving you grief. What have you tried and how is it not working? Also, is there some reason you are not just using a DateField or DateTimeField: http://docs.djangoproject.com/en/dev//ref/forms/fields/#datefield ? Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---