Gossamer Forum
Home : Products : DBMan : Installation :

date handling

Quote Reply
date handling
how do I handle getting a date into the database. Is this right:
<input type=hidden name="date" value="$get_date">
I know it's not, because I'm getting a error about invalid date!
Quote Reply
Re: date handling In reply to
You could simply add the default value in your .cfg file something like this:

'Start Date' => [ 4,'date',20,25,1, &get_date(),''],

Then your date would be automatically filled in for you Smile

Hope this helps Smile
Quote Reply
Re: date handling In reply to
Thanks. I tried the code you suggested in the .cfg but the script still generates an invalid date format error.
Shouldn't there be some html too?
Quote Reply
Re: date handling In reply to
No. All you need is the default value in the .cfg file.

Unless you mean with your hidden field in sub html_record_form. That should be

Code:
<input type=hidden name="date" value="$rec{'date'}">



------------------
JPD