We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This works:
$tab->createOption([ 'name' => 'Report Date', 'id' => 'hidden-report-date', 'type' => 'date', 'default' => time() ]);
This does not:
$tab->createOption([ 'name' => 'Report Date', 'id' => 'hidden-report-date', 'type' => 'date', 'default' => date('Y-m-d') ]);
Documentation example is 'default' => '2010-12-20',, found here: http://www.titanframework.net/docs/date/
'default' => '2010-12-20',
Using the documented technique for a default always produces a date of 1970-01-01 (timestamp 0).
The text was updated successfully, but these errors were encountered:
@AaronOverton you should use date function like this date('Y-m-d', time()) Reference: http://php.net/manual/en/function.date.php
date('Y-m-d', time())
$tab->createOption([ 'name' => 'Report Date', 'id' => 'hidden-report-date', 'type' => 'date', 'default' => date('Y-m-d', time()) ]);
Sorry, something went wrong.
This pull request has the support for that date format default input with a couple of other update. #410
@tojibon Can you resubmit the PR for the date issue only?
No branches or pull requests
This works:
This does not:
Documentation example is
'default' => '2010-12-20',
, found here: http://www.titanframework.net/docs/date/Using the documented technique for a default always produces a date of 1970-01-01 (timestamp 0).
The text was updated successfully, but these errors were encountered: