Angular 在单个列上具有完整日期(DDD MMM)的日期时间选择器

Angular 在单个列上具有完整日期(DDD MMM)的日期时间选择器,angular,cordova,ionic-framework,ionic2,datetimepicker,Angular,Cordova,Ionic Framework,Ionic2,Datetimepicker,我想用以下格式创建日期时间选择器: 我想我必须创建一个带有关联值的自定义列表,但不知道如何在Datetime选择器的视图中使用它 有什么线索吗?你可以使用这个插件-另请参阅 快速示例- document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var myDate = new Date(); // From model. cordova.plugins.DateTime

我想用以下格式创建日期时间选择器: 我想我必须创建一个带有关联值的自定义列表,但不知道如何在Datetime选择器的视图中使用它

有什么线索吗?

你可以使用这个插件-另请参阅

快速示例-

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {

var myDate = new Date(); // From model.

cordova.plugins.DateTimePicker.show({
    mode: "datetime", //you want to pick date and time both from spinner
    date: myDate,
    allowOldDates: true,
    allowFutureDates: true,
    minuteInterval: 15,
    locale: "EN",
    okText: "Select",
    cancelText: "Cancel",
    android: {
        theme: 16974126, // Theme_DeviceDefault_Dialog
        calendar: false,
        is24HourView: true
    },
    success: function(newDate) {
        // Handle new date.
        console.info(newDate);
        myDate = newDate;
    },
    cancel: function() {
        console.info("Cancelled");
    },
    error: function (err) {
        // Handle error.
        console.error(err);
    }
});
}
在棒棒糖和以上的日期和时间选择器更改为日历 和径向选择器。例如,如果要使用微调器,请使用 分钟间隔,选择显示日期和时间选择器的主题 微调器,如Theme_DeviceDefault_Light、Theme_Holo_Dialog或 传统主题

然后,可以将主题设置为适当的常量int值,以将径向默认视图更改为微调器视图