Newbie: How to set default date?

J

Jim Barr

Guest
Hi!

I just installed DaDaBik in my PHP-Nuke site. VERY cool module addon!!!! This is EXACTLY what I am looking for.

Anyway, I am having a problem with "Date" fields. The Date field DOES populate a date in the field when I add a record, but it populates it with "31 Dec 1969".

I created the table using "phpMyAdmin", and it is defined as follows:

Field: Date
Type: Text
Attributes:
Null: No
Default:
Extra:

Note: I tried using a type of "Date", but it set the default as "0000-00-00" and populates the date with "31 Dec 1969".

Next, I defined the type in the Internal Table Manager as "Insert_Date" and it DOES populate a date in the field when I add a record, but again, it populates it with "31 Dec 1969" . It is defined as:

Label: Date
Field Type: insert_date
Content Type: alphanumeric
etc.

I want it to use today's date when I add a record. Am I doing something wrong?

Do I need to set a "default"? If so, to what?

Thanks for your help!

-Jim Barr
 
E

Eugenio

Guest
Jim Barr wrote:
>
> Hi!
>
> I just installed DaDaBik in my PHP-Nuke site. VERY cool
> module addon!!!! This is EXACTLY what I am looking for.
>
> Anyway, I am having a problem with "Date" fields. The Date
> field DOES populate a date in the field when I add a record,
> but it populates it with "31 Dec 1969".

Try using numeric_english as $date_format in config.php.

Eugenio.

(Latest version of DaDaBIK when this message was posted: 2.2.1)
 
Top