Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 mm/dd/yyyy

Author  Topic 

seeker61
Starting Member

4 Posts

Posted - 2013-05-16 : 09:36:05
I want the above format but CONVERT(DATE,MAX(CAST(VALUE AS date)),101) gives me yyyy/mm/dd what do i need to do

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2013-05-16 : 09:40:44
CONVERT(varchar(10),MAX(CAST(VALUE AS date)),101)


Too old to Rock'n'Roll too young to die.
Go to Top of Page

seeker61
Starting Member

4 Posts

Posted - 2013-05-16 : 09:46:31
Thanks.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2013-05-17 : 04:30:19
However if you want to show them in a front end application, you can return DATETIME values as such and use format function there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -