Dynamic Days Counter
Hi all, I am trying to create a counter that would dynamically count how many days are until a given deadline. For example, todays date is 7/22/2010 and a given deadline is 7/30/2010. The counter should display that there are 8 days remaining. Tomorrow however, it should dynamically change to 7 days remaining etc. Any help would be greatly appreciated. Thanks!
July 22nd, 2010 7:51pm

Hi, If you need store this counter information into the list column, you have to do some programming about Timer Job, And schedule the job run in every day. For more information about Timer Job, please refer to http://msdn.microsoft.com/en-us/library/cc406686(office.12).aspx http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx If you just want to display this information in the page, you can use data view web part in SharePoint Designer. In the DVWP, insert a new column into the table, and click to insert a formula. Here's the XSLT formula: number(translate(substring-before(@Created,'T'),'-','')) - number(translate(substring-before(Today(),'T'),'-','')) For more information about DVWP ,please refer to http://office.microsoft.com/en-us/sharepoint-designer-help/CH010066764.aspx Hope this helps Thanks! Stanfford
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 6:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics