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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:17:32+00:00 2026-05-23T18:17:32+00:00

I am trying to convert a date parameter in my select statement but i

  • 0

I am trying to convert a date parameter in my select statement but i wanted to format it and currently it is not accepting how i have it written — Any advice would be appreciated

SELECT @cases = COALESCE(@cases+ @linebreak + C.CaseNumber, C.CaseNumber)+"-"+CT.[Description]+"-"+CONVERT(VARCHAR,@assignment,100)AS A.DateOn

This is how i had it before the formatting and it was converting and working fine:

SELECT @cases = COALESCE(@cases+ @linebreak + C.CaseNumber, C.CaseNumber)+"-"+CT.[Description]+"-"+CONVERT(VARCHAR, A.DateOn)

Not sure if more information will be needed or not but let me know.

  • 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-05-23T18:17:33+00:00Added an answer on May 23, 2026 at 6:17 pm

    Guessing, your last bit should be

    ...+CONVERT(VARCHAR,A.DateOn,101)
    

    Where does @assignment come from? Your unformatted code doesn’t mention it…

    Note (after question comment) 4/14/2010 is harder to do than 04/14/2010. You have to evaluate day, month and year separately to remove leading zeros

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

Sidebar

Related Questions

I am trying to convert a date from yyyy-mm-dd to dd-mm-yyyy (but not in
Trying to convert a date format into a MySQL date: SELECT STR_TO_DATE('8/3/2011 13:30','%m/%d/%Y %h:%i');
i'm trying to convert following varchar date to datetime format but it doesn't work
I am trying to convert a date in a particular format using strptime ,
I'm trying to convert a JSON date to a dd/mm/yyyy format, which I'm managing
I am trying to convert a uncommon date format into a standard date. Basically
I am trying to convert date which is in string and got format of
i am trying to convert a date string to date format >>> str =
I am trying to convert a date to datetime but am getting errors. The
I'm trying to convert this date format (in PHP): dd/mm/yyyy, for example 18/08/2011, into

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.