Re: GtkEntry and "special keys"
| From: | kksou | Date: | Sun, 08 Oct 2006 17:09:53 +0000 |
| Subject: | Re: GtkEntry and "special keys" | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7346@lists.php.net to get a copy of this message | ||
function get_date() {
> $getdate_dialog = new GetDate();
> $date = $getdate_dialog->calendar->get_date();
> $selected_date = $date[1].'/'.$date[2].'/'.$date[0];
> return $selected_date;
> }
>
oops, month is zero-based.
Please changed the above to:
function get_date() {
$getdate_dialog = new GetDate();
$date = $getdate_dialog->calendar->get_date();
$selected_date = 1+$date[1].'/'.$date[2].'/'.$date[0];
return $selected_date;
}
Regards,
/kksou
--
View this message in context: http://www.nabble.com/GtkEntry-and-%22special-keys%22-tf2404486.html#a6706128
Sent from the Php - GTK - General mailing list archive at Nabble.com.