Datetime? ToString("dd/MM/yyyy") MVC

Ĉ¿


Quando uma variável é do tipo data e aceita nulo, se tentar apenas colocar ToString("dd/MM/yyyy"), apresenta erro.

Consegui resolver da seguinte forma:

             @if (item.dtVencimento.HasValue)
                        {                                             @item.dtVencimento.GetValueOrDefault(DateTime.Now).ToString("dd/MM/yyyy")
                        }

Comandos git do dia a dia

Ĉ¿ #Criando um projeto do zero echo "# UBBOAT_App" >> README.md git init git add README.md git commit -m "first commi...