Gossamer Forum
Home : Products : DBMan : Customization :

Invalid Date problem

Quote Reply
Invalid Date problem
in %db_def, I have this entry:
date => [1, 'date', 12, 15, 1, &get_date, ''],

defaulted into a field...when I go to add a record, the date appears as 25-Jan-2000 in the text box, but when I go to enter the record, I get an invalid date format, and cannot input the record. The html is:
Date<INPUT TYPE=DATE VALUE="$rec{'date'}">

Question is...how can I get the date to work
Quote Reply
Re: Invalid Date problem In reply to
You have the wrong INPUT field!

It should be:

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

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: Invalid Date problem In reply to
thanks...that did the trick even better than having an open field...
Quote Reply
Re: Invalid Date problem In reply to
Good.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------