Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 127399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:28:14+00:00 2026-05-11T05:28:14+00:00

Specifically, I wish to get the date format in a pure (ISO) format: YYYY-MM-DD

  • 0

Specifically, I wish to get the date format in a pure (ISO) format:

YYYY-MM-DD HH:mm:ss

I’m looking for a SET command or something that I can use.

I do not wish to rely on the culture setting of the server.

Note: I’m interested in the string format in which dates are returned, not entered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:28:14+00:00Added an answer on May 11, 2026 at 5:28 am

    To change the default format you need to add a new language (sp_addlanguage), set it’s date format, then set the default language to it. More details can be found on this old technet article.

    If you don’t want to do that, then you can change it ‘per connection’ using SET DATEFORMAT.

    And if you don’t want to do that, then you can use CONVERT to convert it to the relevent format string in each query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically I have a PHP command-line script that at a certain point requires input
Specifically, I have a model that has a field like this pub_date = models.DateField(date
I have a font that I wish to use on a website, and I
I have set of components that i wish to let the users download from
Specifically what I am looking to do is make the icons for the Nodes
Specifically, in VS 2008, I want to connect to a data source that you
i have a set of web pages specifically designed to run on iPhones (using
How can I search the memory state of an process in Linux? Specifically I
I wish to automagically discover some information on a provided class to do something
I have a collection of models that I wish to render in a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.