XoopsFormDateTime
Definition
1
XoopsFormDateTime(mixed $caption, mixed $name, mixed $size = 15, mixed $value = 0 );
Copied!
Usage This element will show a date in a text field with a button for bringing up a JavaScript calendar. If no value is given, the element will default to a timestamp found with time() When receiving values from this element, it will come in an array with two indexes: 'date' and 'time', so to get that into a usable timestamp, do the following:
1
$var_name = strtotime($var_name['date']) + $var_name['time'];
Copied!
Last modified 9mo ago
Copy link