I'm creating an add-on that adds a date & time into the database from a date input.
The HTML:
This gives me a date in the format YYYY-MM-DD and uses XenForo's datepicker.
The question: Is it possible to merge a specific date and time into one field in XenForo? Or am I going to have to create two separate fields and concatenate them in my controller?
At the minute, my add-on adds the correct date, but the time is always 12:00am.
The HTML:
HTML:
<input type="text" data-orig-type="date" name="new_post_date" value="{xen:datetime $serverTime, 'Y-m-d'" class="textCtrl date">
The question: Is it possible to merge a specific date and time into one field in XenForo? Or am I going to have to create two separate fields and concatenate them in my controller?
At the minute, my add-on adds the correct date, but the time is always 12:00am.