Asp.net 列和窗体上的Serenity Framework日期时间显示

Asp.net 列和窗体上的Serenity Framework日期时间显示,asp.net,asp.net-core,Asp.net,Asp.net Core,我正在使用Serenety Framework Core 2.0 我的问题是日期选择器不包括时间。 因此,我创建了另一个字段来添加时间,并包含了我能够使其工作的唯一显示格式。insert Form.cs如下所示 `using Serenity; using Serenity.ComponentModel; using Serenity.Data; using System; using System.ComponentModel; using Sys

我正在使用Serenety Framework Core 2.0

我的问题是日期选择器不包括时间。 因此,我创建了另一个字段来添加时间,并包含了我能够使其工作的唯一显示格式。insert Form.cs如下所示

   `using Serenity;
    using Serenity.ComponentModel;
    using Serenity.Data;
    using System;
    using System.ComponentModel;
    using System.Collections.Generic;
    using System.IO;
    using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
    using System.ComponentModel.DataAnnotations;


    [FormScript("Default.Events")]
    [BasedOnRow(typeof(Entities.EventsRow), CheckNames = true)]
    public class EventsForm
    {
        [TextAreaEditor(Rows = 3)]
        public String Title { get; set; }
        [TextAreaEditor(Rows = 8)]
        public String Description { get; set; }
        [Serenity.ComponentModel.DisplayFormat("dd/MM/yyyy HH:mm")]
        public DateTime? EventDate { get; set; }
        [Serenity.ComponentModel.DisplayFormat("HH:mm")]
        public Time Time { get; set; }`
但是,由于缺少更好的术语,日期选择器或时间字段也不显示时间选择器

我想有时间显示,要么与日期选择器或在自己的文件


答案由Leo提供,而非Serenity Whatsup group。简单使用DateTimeEditor

        [DateTimeEditor(IntervalMinutes =1)]
    public DateTime? EventDate { get; set; }