I'm trying to format a string that already has date and time, but this string just has to get the time I'm trying in this way more does not work:
>Recovering from the database.
string dtSolicitacao = String.IsNullOrEmpty(Convert.ToString(drv.Row["dtSolicitacao"])) ? "--" : Convert.ToString(drv.Row["dtSolicitacao"]);
And here trying to format with just the time:
string IdentNomeHorario = "";
IdentNomeHorario += "</br>Nome: " + Apelido;
if (dtSolicitacao != "--")
IdentNomeHorario += " " + String.Format("{0:HH:MM:ss}", dtSolicitacao);