You can check this.
1 If you want to get all the columns
int currentDay = DateTime.Now.Day;
var result = yourDbContext.Conteudo.OrderBy(x => x.Data_cont).Where(x => x.nomeAl == pageId && x.Data_cont.Day == currentDay)
2 If you only need max_valor
, FORMAT(Data_cont, 'hh:mm')
int currentDay = DateTime.Now.Day;
var result = yourDbContext.Conteudo.OrderBy(x => x.Data_cont).Where(x => x.nomeAl == pageId && x.Data_cont.Day == currentDay)
.Select(x => new {
max_valor = x.max_valor,
formattedTime = x.Data_cont.ToString("hh:mm")
}).ToList()