Register
Login
Home
Screen Shots
Download
Live Example
Documentation
DotNetNuke Version
Installing
Installing/Upgrading on DotNetNuke 4
Installing/Upgrading on DotNetNuke 5
Set-Up / Administration
Tags Administration
Using ADefHelpDesk
Creating Tickets
Search existing Tickets
Edit Tickets
Technical
Class Diagram
Localization - Translating ADefHelpDesk
Deleting Tickets
Standard ASP.NET Version
Installing
Installing on Windows 2003
Installing on Windows7 / 2008 R2
Upgrading Standard ASP.NET Version
Set-Up / Administration
Tags Administration
Using ADefHelpDesk
Creating Tickets
Search existing Tickets
Edit Tickets
Technical
Class Diagram
Localization - Translating ADefHelpDesk
Forums
About
Forums
Web
Site
Unanswered
Active Topics
Forums
Search
Members
Forums
>
>
General
txtDue Date Value
Last Post 05-06-2010 02:16 PM by admin. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
nm
New Member
Posts:1
05-06-2010 02:05 PM
Hi,
What is the reason for using .AddDays(-1) in the following line of code?
objADefHelpDesk_LastSearch.DueDate = dtDue.AddDays(-1);
admin
Basic Member
Posts:267
05-06-2010 02:16 PM
When you perform a search and you want to see Tasks that are due on or before "1/12/2010", and a task is due "1/12/2010 05:00:00", it wont show up.
The reason is that "1/12/2010" is actually "1/12/2010 00:00:00" and that is less than "1/12/2010 05:00:00".
So we alter your search to be: "1/11/2010 00:00:00" when you actually put in "1/12/2010", and "1/12/2010 05:00:00" now shows up.
You are not authorized to post a reply.
--General
Forums
>
>
General
Terms Of Use
|
Privacy Statement
|
Copyright 2009 by Michael Washington
Dynnamite DotNetNuke Skins & Modules