Forums

PHP

This topic is locked

How to make a valid MySQL date.

Posted 13 Aug 2001 16:25:51
1
has voted
13 Aug 2001 16:25:51 Mark Labordus posted:
I can't get this to work, can anyone help?

<input type="hidden" name="hiddenField" value="<?php echo date ("Y-m-d", mktime (0,0,0,12,12,1968)); ?>">

When I change the year to above 1970, everything works fine, I don't understand this.

But, in the end I'd like to get the day, month and year from my form by using 3 comboboxes (edtDay, edtMonth, edtYear).
How would I include these values into the mktime() instruction?

Thanks.


Replies

Replied 13 Aug 2001 17:08:45

Reply to this topic