• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SQL Server Date mask in select statement?

Participant ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

Hi
I'm trying to output my query in a cfgrid, but I have a date field which I wish to mask , but I can't figure out how?!

An answer might be to mask the date in my SQL statement, can anyone tell me how?
:S

thanks!
TOPICS
Advanced techniques

Views

948

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Sep 23, 2008 Sep 23, 2008
I got it to work, using:

SELECT CONVERT(VARCHAR(10),dispto, 103) AS dispto
in my query.

Votes

Translate

Translate
LEGEND ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

It depends on the db you are using.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

ah yes, thought I'd mentioned that!
MS SQL Server 2005...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

LATEST
I got it to work, using:

SELECT CONVERT(VARCHAR(10),dispto, 103) AS dispto
in my query.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation