我想在角材料6中使用2018年6月28日作为垫料中的日期格式

时间:2018-06-28 14:21:21

标签: angular datepicker angular-date-format

实际上,我正在研究angular cli:6.0.3,并且我在UI上使用MAT-MAT​​ERIAL https://material.angular.io/,但是我对日期格式感到困惑。

默认日期格式为:6/28/2018(mm / dd / yyyy) 但我需要(2018年6月28日)格式。

https://material.angular.io/components/datepicker/overview 我不想为此使用moment.js谁能告诉我如何仅使用Angular DateAdapter更改日期格式。

0 个答案:

没有答案