1
sgshell
How to use the function xoopsFormDateTime in the form;
  • 2004/12/22 3:48

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Quote:
XoopsFormDateTime( mixed $caption, mixed $name, mixed $size = 15, mixed $value = 0 )


Please inform me how to use this funtion...i read the dev wiki but it do not show example to code it.

2
Mithrandir
Re: How to use the function xoopsFormDateTime in the form;

$date_time_input = new XoopsFormDateTime("caption""name_of_variable"$size_of_input_field$timestamp_of_default_time);

That's in the form.
On the receiving end, to get a UNIX timestamp of the selected time, use this:
$timestamp strtotime($_REQUEST['name_of_variable']['date']) + $_REQUEST['name_of_variable']['time'];

Login

Who's Online

145 user(s) are online (86 user(s) are browsing Support Forums)


Members: 1


Guests: 144


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits