I'm trying to format a default date because there are dates with different formats, as print below.
MM/dd/yyyy|dd/MM/yyyy|dd/MM/yyyyhh:MM:ss
Iwanttochangethesedatestodefaultasdd/mm/yyyyhh:MM:ss
Ithoughtaboutpullingthedatesandthenclickingbuttontoupdatetheformatsofalldates.
ButIdonothavetheideatodothis,it'stimetomakecode.
publicvoidAlteraData(DatanewData){try{stringquery=command.CommandText="'UPDATE T410_CARGA SET T400_DTCHEGADA = '" + newData.Data;
for (int linha = 0; linha <= 10; linha++)
{
newData.ToString("dd/mm/yyyy hh:MM:ss");
}
}
}