Solved

count days

Posted on 2011-03-22
7
1,236 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 6

Expert Comment

by:ThatSharepointGuy
Comment Utility
=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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Infopath people picker - shading 3 62
OneDrive 4 72
Sharepoint Cascading Links 11 42
Citrix sharefile 1 38
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

9 Experts available now in Live!

Get 1:1 Help Now