网站上的datetimepicker仅显示年份

问题描述

我正在尝试在我的网站表单上添加datetimepicker,但是我只需要查看年份。 这是我的代码

const getRobots = () => {
  axios.get("https://jsonplaceholder.typicode.com/users").then((response) => {
    return response.data;
  });
};

let robotsValue = getRobots();
console.log(robotsValue);

如何更改以显示如下内容

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)