Solved

count days

Posted on 2011-03-22
7
1,257 Views
Last Modified: 2012-08-13
Is there a way to count days from a date?
I want it to increment daily?
0
Comment
Question by:karen2662
  • 4
  • 3
7 Comments
 
LVL 6

Expert Comment

by:ThatSharepointGuy
ID: 35193813
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 ;-)
0
 

Author Comment

by:karen2662
ID: 35197687
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.
0
 
LVL 6

Expert Comment

by:ThatSharepointGuy
ID: 35199206
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.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 6

Expert Comment

by:ThatSharepointGuy
ID: 35199335
=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.
0
 

Author Comment

by:karen2662
ID: 35199602
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
0
 
LVL 6

Accepted Solution

by:
ThatSharepointGuy earned 500 total points
ID: 35199897
Karen,

I understood your question, and I've been playing with it on my test server here...but I don't believe that it's something that comes with the default install of SharePoint.

So my answer would be "no, you can't do that with 'Out of the Box' SharePoint".

BUT

You can create a custom field if you are a developer (or know someone who is) that could take the [Date Created] field and count from there until the [Date Completed] value is not null (meaning, stop counting when someone completes the task), just like you want.  So it IS possible, but only if you're willing to write the code to do it.  
0
 

Author Closing Comment

by:karen2662
ID: 35200017
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now