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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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)
 Use datepicker in multiple parameter
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

donalejandro61
Starting Member

4 Posts

Posted - 07/17/2012 :  02:07:28  Show Profile  Reply with Quote
Hello,

I am using ssrs 2005 I have three seperate fields OHORDM which is the month the second field is OHORDD the Day and OHORDY is the Year I do have these three seperate fields as a string parameter, but I want do use the datepicker. Does anybody knows how to do this when the user select the calendar/datepicker? Any guidance will help I am lost on this one. Thank you in advance.

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 07/17/2012 :  08:25:32  Show Profile  Reply with Quote
When you get the value of the date in your stored procedure or query, use the DAY, MONTH, and YEAR functions to get the day, month and year. For example, this will give you the day, month and year of today:
SELECT DAY(GETDATE()),MONTH(GETDATE()),YEAR(GETDATE())
Go to Top of Page
  Previous Topic Topic Next 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