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个回答



更多关于HTML5的日期:</ p>

展开原文

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问