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 9025951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:24:08+00:00 2026-06-16T06:24:08+00:00

Hope we’re having a good day and all set for Christmas. Got a quick

  • 0

Hope we’re having a good day and all set for Christmas.

Got a quick question. I’m converting a MySQL function into SQL Server, I’ve got most of the function converted except for one part which has the following:

@description = CONCAT(@description, date_format(@INLastUpdated, '%H:%i %d %b %Y'))

What I’m trying to do is to basically recreate the date_format function to format the date in the same way specified, but I’m not sure how to do it. from what I’ve seen in the MySQL documentation the format selected would give hour:minute day / short month name / year.

Anyone got any ideas?

  • 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. Editorial Team
    Editorial Team
    2026-06-16T06:24:09+00:00Added an answer on June 16, 2026 at 6:24 am

    You can try this:

    DECLARE @description VARCHAR(1000) = 'test'
    DECLARE @INLastUpdated DATETIME = '2012-12-21 14:32:22'
    SET @description = @description + ' ' 
        + LEFT(CONVERT(VARCHAR(8), @INLastUpdated, 8), 5) + ' ' 
        + CONVERT(VARCHAR(20), @INLastUpdated, 106)
    
    SELECT @description
    

    But be careful as format 106 depends on local language settings. Read more on MSDN

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

Sidebar

Related Questions

Hope you're having a good Friday and stuff... okay, so here's my question: All
hope you're having a good day. Another socket issue, another day :) I finally
Hope you all are fine and rocking your code editors. My question is how
Hope you are fine. My question : In MYSQL i have a table with
Hope you all had a good weekend. We're just about to sign up to
Hope this question hasn't been asked before. I've got the following working <!-- 640x920
hope all of you doing well. I have small question in C#.Net. actually i
Hope your all enjoying your hollydays. Ive run into a pretty funny problem when
Hope you have a good weekend. At long last I have got some editing/delete
hope you all had a happy new year. So, my question is, what's the

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.