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

SQL Server Date mask in select statement?

Participant ,
Sep 23, 2008 Sep 23, 2008
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
1.0K
Translate
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.
Translate
LEGEND ,
Sep 23, 2008 Sep 23, 2008
It depends on the db you are using.
Translate
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
ah yes, thought I'd mentioned that!
MS SQL Server 2005...
Translate
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
LATEST
I got it to work, using:

SELECT CONVERT(VARCHAR(10),dispto, 103) AS dispto
in my query.
Translate
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