如何在MDriven中设置日期和时间选择器? [英] How do I set Date AND time picker in MDriven?

查看:95
本文介绍了如何在MDriven中设置日期和时间选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在MDriven中捕获日期和时间,但是数据类型DateTime的默认值仅显示日期的选择器(在Web中),但是时间存储在持久性层中.我也该如何记录时间?

I am trying to capture both date and time in MDriven, but the default for data type DateTime only shows a picker (in Web) for the date, but a time is stored in the persistency layer. How do I also capture the time?

推荐答案

我在 wiki.mdriven.net

日期格式您可以在样式"属性中设置日期和时间格式 包含在{}中.

Date-formatting You set date and time format in the Style attribute enclosed in { }.

例如,对于日期和时间,{short}将在 紧凑格式.默认日期格式为{shortDate}.请参考 Angular指南以格式化日期 https://docs.angularjs.org/api/ng/filter/date

For example, for dates and time, {short} will show date and time in compact format. The default date format is {shortDate}. Please refer to the Angular guide for formatting dates https://docs.angularjs.org/api/ng/filter/date

日期和时间格式会根据 浏览器.

The date and time format are automatically localized depending on the browser.

这篇关于如何在MDriven中设置日期和时间选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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