SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 mm/dd/yyyy
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

seeker61
Starting Member

4 Posts

Posted - 05/16/2013 :  09:36:05  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

Germany
8765 Posts

Posted - 05/16/2013 :  09:40:44  Show Profile  Visit webfred's Homepage  Reply with Quote
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 - 05/16/2013 :  09:46:31  Show Profile  Reply with Quote
Thanks.
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22761 Posts

Posted - 05/17/2013 :  04:30:19  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000