Format Date I receive 2017-06-13 from the database, using the code: Dia = sqlDataReader["DESCRICAO"].ToString(), I would like to show 13/06/2017, how can I do this formatting?
Your field returns a date or string?
– Leo Longhi
Field returns a String.
– user77639
take a look at Link that marked as duplicated, la you will find the answer!
– Leo Longhi
yourVariable = Datetime.Parseexact(dataParaSerFormated), "dd/MM/yyyy", Cultureinfo.Invariantculture). Date;
– Lucas Eduardo da Silva