title: input datetime set string.format to model item
body: <p>I've an input of type datetime</p>
  
  <pre><code>   &lt;input type="datetime" id="DATA_END_@id" value="@String.Format("dd/MM/yyyy",item.DATA_END_PREZZATURA.ToString())" /&gt;
  </code></pre>
  
  <p>I need to set the model item value in the datetime format dd/MM//yyyy</p>
  
  <p>What is the right sintax?</p>
  
  <p>Thank you!</p>
  
  <p>In the end this was the solution</p>
  
  <pre><code>@{
                  string value_d_s = "";
                  DateTime? dateOrNull = item.DATA_END_PREZZATURA;
                  if (dateOrNull != null)
                  {
                      DateTime date_d_s = dateOrNull.Value;
                      value_d_s = date_d_s.ToString("dd/MM/yyyy");
                  }
  
               }
  
              &lt;input type="datetime" id="DATA_END_@id" value="@value_d_s" /&gt;     
  </code></pre>