Formatting a date to dd/mm/yyyy

Following code will format sql server date in dd/mm/yyyy format.


Code:

select convert(varchar,getdate(),103)
-- should return dd/mm/yyyy


convert the date as string based on the 3rd argument in the convert() function.

Commentaires

Posts les plus consultés de ce blog

XAJAX with PHP – The future of web development

XAJAX with PHP – The future of web development

Database connection pooling in ADO.Net