SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 DateTime field without seconds
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ciupaz
Posting Yak Master

Italy
176 Posts

Posted - 04/24/2012 :  03:40:50  Show Profile  Reply with Quote
Hello all,
in a cell of my RS2003 I show a DateTime value like this:

2012-01-01 00:15:00.000

Is it possible to exclude the second? So I obtain:


2012-01-01 00:15


Thanks in advance.

Luigi

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 04/24/2012 :  11:01:41  Show Profile  Reply with Quote
Set the FORMAT to "yyyy-M-dd HH:mm"
You could also set the expression in the cell to the formatted value: =Format(Fields!DateCol.Value,"yyyy-M-dd HH:mm")
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000