【发布时间】:2012-06-06 23:11:05
【问题描述】:
我应该以哪种格式输入日期和时间,以便在 datetime 类型的 HTML5 输入元素中使用?
我试过了:
133857550201/06/2012 19:3101/06/2012 19:21:002012-06-012012-06-01 19:312012-06-01 19:31:00
它们似乎都不起作用。
【问题讨论】:
-
你能贴出你试过的代码吗?
-
@j08691
<input type="datetime" name="timeOpen" value="<?php echo date('d/m/Y H:i:s'); ?>" size="64" required="required" />
标签: html datetime html-input