如何在HTML日期输入标签中设置日期格式? [英] How to set date format in HTML date input tag?

查看:693
本文介绍了如何在HTML日期输入标签中设置日期格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在html < input type =date>< / input> 标签中设置日期格式...目前它是yyyy-mm-dd,而我需要dd-mm-yyyy格式。

I am wondering whether it is possible to set the date format in the html <input type="date"></input> tag... Currently it is yyyy-mm-dd, while I need it in the dd-mm-yyyy format.

推荐答案

我认为如果仅使用HTML,则无法解决

i认为您应该使用jquery

合适的jquery插件是 jQuery Masked Input

i think there is no solution if using HTML only
i think you should use jquery
the suitable jquery plugin is jQuery Masked Input

这篇关于如何在HTML日期输入标签中设置日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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