[英]How to CSS styling with react-dates?
react-dates relies on moment to format date. react-dates取决于格式化日期的时刻。 If what you need is just show a complete date, you need to format your date using the displayFormat prop, like this example: 如果只需要显示一个完整的日期,则需要使用displayFormat属性格式化日期,例如以下示例:
static defaultProps = {
Wrapper: styles.Wrapper,
displayFormat: 'MMM DD YYYY',
invalid: false,
disabled: false,
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.