Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 How to get Date part of CDateTime

Author  Topic 

Peace2007
Posting Yak Master

239 Posts

Posted - 2008-09-07 : 06:16:50
Hi

I'm reading CDateTime value But I need to display just the date value. How can I do that?

Peace2007
Posting Yak Master

239 Posts

Posted - 2008-09-07 : 06:25:41
the answer is this:
FormatDateTime(your date value)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-07 : 07:18:03
quote:
Originally posted by Peace2007

the answer is this:
FormatDateTime(your date value)


no need of using the function. you've standard format option available for cell. just right click and go to properties, format tab and select a suitable format.
Go to Top of Page

Peace2007
Posting Yak Master

239 Posts

Posted - 2008-09-08 : 05:36:35
I didn't know that
Thank you visakh
Go to Top of Page
   

- Advertisement -