如何格式化ftl/html中隐藏输入字段
我必须在HTML中使用两个字段键入文本,而这些字段则为这些字段。 现在,当我选择日期时,它们会自动填充文本字段,但在隐藏的输入字段中,这些值也将与时间存储。
像这样:
=“ 2022-04-13T00:00:00+02:00”
是否有一种格式化输入的方法:
value =“ 2022-04-13”
value
I have to two fields type text in html, and two datepicker for those fields.
Now, when I choose the dates, they automatically populate text fields but in hidden input field those values are stored with the time also.
Like this:
value="2022-04-13T00:00:00+02:00"
Is there a way to format that input to be like this:
value="2022-04-13"
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用什么浏览器?
在此代码示例中,一切正常。
What browser are you using?
in this code example everything works as you expected.