-1
I am trying to format a standard date as there are dates with different formats as print below.
MM/dd/yyyy | dd/MM/yyyy | dd/MM/yyyy hh:MM:ss
I intend to change these dates to default as dd/MM/yyyy hh:MM:ss
I thought to pull the dates and then click button to update the formats of all dates.
Only I have no idea how to do that, I freeze at the time of making code.
public void AlteraData(Data newData)
    {
        try
        {
            string query = 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");
            }
        }
    }
						

I don’t understand why
for, what his motive is?– Barbetta
I did not understand why it is after the update, which also has
where. I even think that column in the bank is avarchar.– Diego Rafael Souza
True, I forgot to put Where. Exactly that this column is varchar.
– Joao Torres Moreira
@Barbetta the loop for will format every line you have in the bank. But I think I found a way, I will post my code that I did differently up there.
– Joao Torres Moreira