0
I’m having problems with displaying a datetime format. I get the "03/12/1980 12:34:09", but only the input mask appears. How to make the date appear along with the time?
Thank you :)
[DisplayName("Data/Hora de Inclusao")]
[DisplayFormat(DataFormatString = "{0:yyyy/MM/dd HH:mm:ss}", ApplyFormatInEditMode = true)]
[DataType(DataType.DateTime, ErrorMessage = "Data em formato inválido")]
public DateTime DataHoraInclusao { get; set; }
strip that
DisplayFormat
? and tell me– novic
I removed, only that the date is displayed like this: 12/03/1980 12:34:09,864
– Master JR
It is the format in Displayformat that you put wrong you’re looking at it the way it is there day, month, year hours minutes and seconds dd/MM/yyyy HH:mm:ss test?
– novic
It worked. Thank you :)
– Master JR