Explorando C #

lunes, 4 de mayo de 2015

DateTime

http://msdn.microsoft.com/es-es/library/system.datetime%28v=vs.110%29.aspx

http://www.mikesdotnetting.com/article/23/date-formatting-in-c (opciones de cadena de formato)

https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx

https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx


Si se quiere dia, mes, año:
dataGridView4[1, 1].Value = ReporteArray[0].FechaReporteZ.Date.Day + "/" + ReporteArray[0].FechaReporteZ.Date.Month + "/" + ReporteArray[0].FechaReporteZ.Year;
                         

Si se quiere solamente la hora:
dataGridView4[1, 2].Value = ReporteArray[0].FechaReporteZ.TimeOfDay;


https://docs.microsoft.com/en-us/dotnet/api/system.datetime.date?view=netframework-4.8

https://www.dotnetperls.com/datetime-format

https://tableplus.io/blog/2018/09/ms-sql-server-how-to-get-date-only-from-datetime-value.html

https://www.w3schools.com/sql/sql_between.asp

https://www.youtube.com/watch?v=A7E3EdZpPOU

https://www.mssqltips.com/sqlservertip/5206/sql-server-datetime-best-practices/ (Importante leer)
Publicado por cesar en 13:53

No hay comentarios:

Publicar un comentario

Entrada más reciente Entrada antigua Inicio
Suscribirse a: Enviar comentarios (Atom)

Etiquetas

  • .Net (1)
  • Aplicación (1)
  • C# (1)
  • COM (1)
  • comboBox (2)
  • DataGridView (3)
  • Expresiones regulares (1)
  • Fundamentos C# (6)
  • Instaladores (1)
  • KeyPress (1)
  • Localizacion (1)
  • Ports (1)
  • Regex (1)
  • Regular expressions (1)
  • Resources (1)
  • TabControl (1)
  • Textbox (1)
  • Validating (1)
  • Windows Forms (1)
  • WPF (1)

Archivo del blog

  • ►  2019 (1)
    • ►  agosto (1)
  • ►  2018 (1)
    • ►  mayo (1)
  • ►  2017 (3)
    • ►  junio (2)
    • ►  febrero (1)
  • ►  2016 (1)
    • ►  marzo (1)
  • ▼  2015 (29)
    • ►  septiembre (1)
    • ►  agosto (2)
    • ►  julio (7)
    • ►  junio (7)
    • ▼  mayo (4)
      • Datagriview & Data
      • MUY IMPORTANTE PARA EL DESARROLLO DE APLICACIONES
      • DateTime
      • Editor de texto
    • ►  marzo (5)
    • ►  febrero (3)
  • ►  2014 (29)
    • ►  diciembre (1)
    • ►  octubre (2)
    • ►  septiembre (4)
    • ►  junio (8)
    • ►  mayo (3)
    • ►  abril (2)
    • ►  marzo (9)
  • ►  2013 (4)
    • ►  mayo (4)
  • ►  2011 (2)
    • ►  mayo (2)
  • ►  2010 (8)
    • ►  octubre (1)
    • ►  enero (7)
  • ►  2009 (7)
    • ►  diciembre (3)
    • ►  octubre (2)
    • ►  agosto (2)
  • ►  2008 (1)
    • ►  marzo (1)

Links de mucho interes!!

  • MSDN
Tema Fantástico, S.A.. Con la tecnología de Blogger.