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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:05:31+00:00 2026-05-22T02:05:31+00:00

I want to select a date column in specific format – suppose my date

  • 0

I want to select a date column in specific format – suppose my date format is MM/dd/yyyy. I want to select it as dd/MMM/yyyy

I can do this by:

SELECT CONVERT(VARCHAR(11), myDateColumn, 106)

The problem is that I want to select it as type DATETIME, not VARCHAR because I want to sort my grid on this column.

  • 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-22T02:05:32+00:00Added an answer on May 22, 2026 at 2:05 am

    I change the formt of date in grid_ColumnAdded event

    e.Column.DefaultCellStyle.Format =
    “dd’ ‘MMM’ ‘yyyy”;

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

Sidebar

Related Questions

i want to format date to string in hql select, for example i have
this is what i want. but i have put only a specified date. SELECT
in my my mysql table, I have a column with date format: yyyy-mm-dd I
I want to SELECT a formatted date string from a datetime type in SQL
SELECT GETDATE() Returns: 2008-09-22 15:24:13.790 I want that date part without the time part:
I want to echo the result from a date column after a database query,
I'm trying to select a specific date between two dates. The forma its stored
I want to select a2.date if it's there, but if it's NULL I want
i have this ai_invoice table. i want to select the lastPaymentAmount and lastPaymentDate with
So, coming up with a title for this is difficult SELECT Date(p.born_at), SUM(p.value) as

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.