Skip to content

Instantly share code, notes, and snippets.

@donpandix
Created July 9, 2018 16:23
Show Gist options
  • Save donpandix/1bdb083896aac805476f949b793fe57f to your computer and use it in GitHub Desktop.
Save donpandix/1bdb083896aac805476f949b793fe57f to your computer and use it in GitHub Desktop.
Formateo de un dato Datetime a una cadena de texto con el formato deseado
-- Basado en el motor SqlServer 2012
SELECT FORMAT(getdate(), 'dd/MM/yyyy HH:mm') AS fecha_formateada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment