文本框中的日期格式 [英] date formate in text boxe

查看:98
本文介绍了文本框中的日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<输入类型=文本" name =日期">我在html中使用此文本框获取用户的日期,我想限制用户仅输入该格式的日期(mm/dd/yyyy)
在此存储在mysql数据库中并检索它之后,没有其他任何形式显示该形式(默认情况下,形式yyyy-mm-dd)
我们需要

查询保存日期
查询以检索日期

<input type="text" name="date"> i am use this text box in html for get the date from user i want to restrict to user enter date only this formate (mm/dd/yyyy)
not any other formate after this store in mysql database and retrieve it and show on this formate not (by default formate yyyy-mm-dd)
we require

query to save date
query to retrieve date

推荐答案

您可以在文本框中添加以下javascript验证:

http://javascript.internet.com/forms/format-date.html [ ^ ]
You can add the following javascript validation to the text box:

http://javascript.internet.com/forms/format-date.html[^]


尝试ajax控制工具套件的屏蔽编辑功能
单击此处
try ajax control tool kit masked edit feature
click here


这篇关于文本框中的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆