I have a date column where the date format is
2010-04-14
in SQL Server. Is there any possible way to retrieve the date format as
14/04/2010
in a select statement?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
Source Link
Addendum 1:
As described in my comment, you need to convert your field to a
DATETIMEtype before the above will work. This example should work on your SQL Server:If you get this exception:
Then you need to change your date field to be in
YYYY-MM-DDFormat, EG: 2010-14-04OR
Add the following line before the select statement:
Example: