Alessandro.Alberti
26-01-2018 16:14:46
Boa tarde pessoal, sou novo no fórum precisei alterar o códi de um form mais ele retorna a data com outro formato.
A data no textbox entra com dd/mm/yyyy mais depois que salva e navego no formulario ela vem com o mm/dd/yyyy.
Já utilizei as duas formas
ActiveCell.Offset(0, 12).Value = Format(txt15.Value, "dd/mm/yyyy")
ActiveCell.Offset(0, 12).Value = Format(txt27.Value, "dd/mm/yyyy")
txt15.Value = Format(txt15.Value, "DD/MM/YYYY")
txt27.Value = Format(txt27.Value, "DD/MM/YYYY")
Tambem coloquei no anexo o arquivo todo.
Agradeço a ajuda.
Obrigado
A data no textbox entra com dd/mm/yyyy mais depois que salva e navego no formulario ela vem com o mm/dd/yyyy.
Já utilizei as duas formas
ActiveCell.Offset(0, 12).Value = Format(txt15.Value, "dd/mm/yyyy")
ActiveCell.Offset(0, 12).Value = Format(txt27.Value, "dd/mm/yyyy")
txt15.Value = Format(txt15.Value, "DD/MM/YYYY")
txt27.Value = Format(txt27.Value, "DD/MM/YYYY")
Tambem coloquei no anexo o arquivo todo.
Agradeço a ajuda.
Obrigado