Link to home
Start Free TrialLog in
Avatar of karen2662
karen2662

asked on

count days

Is there a way to count days from a date?
I want it to increment daily?
Avatar of ThatSharepointGuy
ThatSharepointGuy
Flag of Japan image

Karen,

Where exactly do you want to do this?  Which version of SharePoint are you using?  Was this to be in a PowerShell script, in a date range in a list, etc?  

We'll need more information to help you achieve your goal ;-)
Avatar of karen2662
karen2662

ASKER

Sharepoint 2007
date field
I would like to have a counter or field that would increment daily from the date field.
I want to show how many days since the task was assigned.
When the task is completed the user will enter a completion date and then the counter/field could stop.
Do you have access to SharePoint Designer?  If so, this looks to be exactly what you're looking for, with the added bonus of color coding the list items based on the difference between the date assigned and the date due.

http://blog-sharepoint.blogspot.com/2009/05/data-view-conditional-formatting-using.html

Otherwise, you're basically going to use filters as mentioned in this article:
http://blog.pentalogic.net/2008/10/advanced-sharepoint-view-and-filters/

I have never done this myself, but from what I understand, it's not an easy task with out-of-the-box SharePoint features.  Mainly because I don't think it will let you display it, just set up views for stuff like "tasks due in the next 7 days", "Tasks due today", etc.  I could be wrong, and would actually set it up here myself, but I'm running SP2010 and I'm not sure if there are differences with filters between the two.  

I'd read at least that second article, and try messing around to see if you can't get it to work.
=Today() > [Due Date]

Open in new window


This would be what you might try to use.  I'd say, toss this into the formula section of the list, or the validation settings, and see what happens.
Thanks but either I am misunderstanding your answer or my question was not clear.
my task would have a date and I would like a field that increments daily until a completed date is entered.
Task 1
   I would like a counter that starts counting until a completed date is entered.
date started  03/14/2011  
so the field would increment each day so iif today is 3/17  the field should have a 2
the next day it would increment to 3
when the completed date is entered
completed date  3/20/2011  the counter should show 6
ASKER CERTIFIED SOLUTION
Avatar of ThatSharepointGuy
ThatSharepointGuy
Flag of Japan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks