• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

MS Access query - Get date format in query result

ThrottleWorks

Excel Ninja
Hi,

I am writing below mentioned query to get date for pending items.
The results are correct. However, visually I can see date in number format.
How do I mention in my query to show results in date format.

Can anyone please help me in this.

Code:
SELECT POC, [project name] as Project, [project status] as Status, [Planned End Date] as My_Date from my_database where [project status] ='PPP' order by POC
 

Chihiro

Excel Ninja
Try something like...
Code:
SELECT
    [POC],
    [project name] as Project,
    [project status] as Status,
    FORMAT([Planned End Date], "Short Date") as My_Date
FROM
    my_database
WHERE
    [project status] ='PPP' order by POC;
 

shrivallabha

Excel Ninja
Sorry for digressing from the topic!

@Hui @r1c1
I am thinking that for such questions we should have a section named "Other Office Applications" as once in a while users will come up with such queries regarding MS-Word or MS-Access and they may get good answers.

Obviously, from solution viewpoint it really doesn't matter where a question is being posted.
 

ThrottleWorks

Excel Ninja
Hi @Chihiro sir. Thanks for the help. It is working great.
By the way it seems Access wants to keep user busy with use of ' and " symbols.

Have a nice day ahead. :)
 
Top