Click here to Skip to main content
15,921,052 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Select all items in CheckedListBox with an itam in a CheckedListBox ... Pin
Christian Graus21-Nov-06 19:01
protectorChristian Graus21-Nov-06 19:01 
GeneralRe: How to Select all items in CheckedListBox with an itam in a CheckedListBox ... Pin
Steve Echols21-Nov-06 19:18
Steve Echols21-Nov-06 19:18 
QuestionDateTime Formatting - lose the time Pin
Jagannatha10821-Nov-06 16:16
Jagannatha10821-Nov-06 16:16 
AnswerRe: DateTime Formatting - lose the time Pin
Jon Sagara21-Nov-06 16:46
Jon Sagara21-Nov-06 16:46 
GeneralRe: DateTime Formatting - lose the time Pin
Jagannatha10822-Nov-06 8:26
Jagannatha10822-Nov-06 8:26 
GeneralRe: DateTime Formatting - lose the time Pin
Jon Sagara22-Nov-06 9:10
Jon Sagara22-Nov-06 9:10 
GeneralRe: DateTime Formatting - lose the time Pin
Jagannatha10822-Nov-06 9:17
Jagannatha10822-Nov-06 9:17 
GeneralRe: DateTime Formatting - lose the time [modified] Pin
Jon Sagara22-Nov-06 9:29
Jon Sagara22-Nov-06 9:29 
Ok, now that I have seen the code, I think it is better that you leave it as it is.

In your C# calling code, do this:

DateTime FromDate = DateTime.ParseExact("11/22/2006", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture);
DateTime ToDate = DateTime.ParseExact("11/30/2006", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture);
ToDate = new DateTime (ToDate.Year, ToDate.Month, ToDate.Day, 23, 59, 59);


(Of course, replace my dates with your variables that you're trying to convert.)

This will give you a FromDate of "11/22/2006 00:00:00", and a ToDate of "11/30/2006 23:59:59", which I assume is what you want. So, any value in the dateraised column that is between 11/22/2006 and 11/30/2006 inclusive will be returned.

Edit: You'll may need to change "< @ToDate" to "<= @ToDate" in your sproc, depending on how your logic works.

Jon Sagara
When I grow up, I'm changing my name to Joe Kickass!
My Blog | My Site | My Articles

QuestionC# and networking with Ethernet Bridge... Pin
SCSUVulcan21-Nov-06 14:30
SCSUVulcan21-Nov-06 14:30 
AnswerRe: C# and networking with Ethernet Bridge... Pin
Paul Conrad21-Nov-06 15:05
professionalPaul Conrad21-Nov-06 15:05 
AnswerRe: C# and networking with Ethernet Bridge... Pin
Russell Jones21-Nov-06 21:07
Russell Jones21-Nov-06 21:07 
QuestionResources in design-time Pin
Anton Afanasyev21-Nov-06 13:56
Anton Afanasyev21-Nov-06 13:56 
QuestionThreads and KeyBoard Hook Pin
ranzask21-Nov-06 13:24
ranzask21-Nov-06 13:24 
AnswerRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango21-Nov-06 13:29
sponsorJudah Gabriel Himango21-Nov-06 13:29 
GeneralRe: Threads and KeyBoard Hook Pin
ranzask21-Nov-06 13:39
ranzask21-Nov-06 13:39 
GeneralRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango21-Nov-06 15:39
sponsorJudah Gabriel Himango21-Nov-06 15:39 
GeneralRe: Threads and KeyBoard Hook Pin
ranzask21-Nov-06 22:00
ranzask21-Nov-06 22:00 
GeneralRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango22-Nov-06 5:44
sponsorJudah Gabriel Himango22-Nov-06 5:44 
QuestionError CS1705 Pin
jimNLX21-Nov-06 10:27
jimNLX21-Nov-06 10:27 
AnswerRe: Error CS1705 Pin
George L. Jackson21-Nov-06 12:54
George L. Jackson21-Nov-06 12:54 
QuestionRemoting and controlling access to properties Pin
Wjousts21-Nov-06 7:51
Wjousts21-Nov-06 7:51 
AnswerRe: Remoting and controlling access to properties Pin
ednrgc21-Nov-06 8:46
ednrgc21-Nov-06 8:46 
AnswerRe: Remoting and controlling access to properties Pin
ednrgc21-Nov-06 8:54
ednrgc21-Nov-06 8:54 
GeneralRe: Remoting and controlling access to properties Pin
Wjousts21-Nov-06 11:04
Wjousts21-Nov-06 11:04 
QuestionWndProc Pin
vincent3121-Nov-06 7:45
vincent3121-Nov-06 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.