3
I’m trying to format a string that already has date and time, but this string just gotta get the time I’m trying this way but it doesn’t work:
Recovering from Data Base.
string dtSolicitacao = String.IsNullOrEmpty(Convert.ToString(drv.Row["dtSolicitacao"])) ? "--" : Convert.ToString(drv.Row["dtSolicitacao"]);
And here trying to format only with the hour:
string IdentNomeHorario = "";
IdentNomeHorario += "</br>Nome: " + Apelido;
if (dtSolicitacao != "--")
IdentNomeHorario += " " + String.Format("{0:HH:MM:ss}", dtSolicitacao);
What doesn’t work? How time is coming from the base?
– DontVoteMeDown
The base time is coming so 27/08/215 09:06:33, I wanted to format just to show the time 09:06:33 without the day.
– krispim