[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

convert date time format

Posted on 2007-08-10
1
Medium Priority
?
254 Views
Last Modified: 2012-08-13
I have a data filde like below
2007-08-06 09:58:23.000

I can i convert it to the date format Like : 06-Aug-2007 ?
0
Comment
Question by:jung1975
1 Comment
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 2000 total points
ID: 19669954
SELECT CONVERT(VARCHAR(11),GETDATE(),113)

SELECT REPLACE(CONVERT(VARCHAR(11),GETDATE(),113),' ','-')
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question