I am trying to show date 1 year from now and save it in unix timestamp, but no success.
The form below shows me "Jul 28, 2024", but when I pickup any date it shows in different format e.g. 2024-07-28.
How to show and pickup on the same format?
<xf:dateinput name="expiration" id="expiration"...
I've been using this query for years to get the number of posts made by myself in the past 365 days. It works great:
$res = $db->query('
SELECT COUNT(*) AS total
FROM xf_post AS post
WHERE user_id = 1
AND (post.post_date >= UNIX_TIMESTAMP(CURDATE() - INTERVAL 8760 HOUR))...
Allows users to override the language-level date and time format settings.
Adds two new User Custom Fields:
Preferred Date Format
All (non-custom) formats from the admin panel
Full-year m/d/y and d/m/y formats
ISO 8601 YYYY-MM-DD format
Preferred Time Format
12 and 24 hour formats
They...
This suggestion is based on the following thread.
Currently (XF 2.1.6), the order of 'month' and 'year' in the title of Pikaday is always 'month' followed by 'year' irrespective of the date format settings in ACP > Language.
Please, make Pikaday respect the locale settings for date format as...