douba8758 2012-02-20 06:56
浏览 123
已采纳

jQuery Mobile表单日期输入格式

I've got a simple form as part of a jQuery Mobile site which includes a date field:

<input type="date"  name="contactNewInspectionDate" id="contactNewInspectionDate" />

I'm trying to establish the format of what is submitted for these type="date" fields. So far I'm seeing something like this:

2012-02-16

for February 16, 2012.

Is YYYY-MM-DD always the submitted format for these date fields?

If that is the case can anyone recommend the easiest way to parse the individual elements out using PHP (Date, Month, Year)?

Many thanks, Steve

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导
  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp