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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:23:28+00:00 2026-05-18T23:23:28+00:00

I have some dates in the following format : YYYY-MM-DD HH:MM:SS ’ I would

  • 0

I have some dates in the following format : YYYY-MM-DD HH:MM:SS’

I would like it to be in this format: YYYY-MM-DD

Also, I am selecting another field with true and false values which I would like to convert to 0’s and 1’s

Is this possible?

I am doing this in a dts package and noticed one more thing:

The last field I am selecting is a guid which is enclosed in {brackets} is there a way to take the brackets out

  • 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-18T23:23:29+00:00Added an answer on May 18, 2026 at 11:23 pm

    Well, if you are using SQL Server 2008, then there is a DATATYPE DATE, without time. You could CAST your date column to this format or convert it to VARCHAR(10) using the 120 format. So, if you are writing a query, you can use the following statement for your columns:

    SELECT  CONVERT(DATE,DateColumn), /* Or CONVERT(VARCHAR(10),DateColumn,120) depending on what you want*/
            CASE BooleanColumn WHEN 'False' THEN 0 WHEN 'True' THEN 1 ELSE NULL END,
            REPLACE(REPLACE(GuidColumn,'{',''),'}','')
    FROM myTable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See i have this following code below, at line no.9 i'm calculating some dates
I have some text in the following format: column1 DATE, column2 VARCHAR2(6), column3 VARCHAR2(15)
I have some data, like this: BUG DATE STATUS ---- ---------------------- -------- 9012 18/03/2008
I have imported a time series with dates of the following format: test =
I have a range of dates in the following format Hire TERM ReHire1 TERM2
I have the following code, which groups some events (YYYY-MM-DD HH:MM:SS) in weeks which
Say we have the following simple data-frame of date-value pairs, where some dates are
I have some xml in the following format: <fileExport> <rows> <row id=0> <columns> <column
I have the following situation: a form field type date a validation pattern like
I have dates in my script related to some teaching lessons. Each lesson has

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.