Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there any documentation on how SP adds time to a date? For example, if I add one month to today (say it's the 31st), does SP return the last day of the next month (the 30th)? What about leap years? I can't seem to find any info on this so if someone could point me in the right direction I'd appreciate it.

thanks.

share|improve this question
    
I figured it out. I just created a test list with two date columns and a workflow to add time to a date value from the first date column. When I added one month to 1/31/2012 it returned 2/29/2012. When I added one month to the 15th, it returned the 15th of the next month. –  Steve W Oct 10 '12 at 16:10
    
Put your comment in as an answer then it can be marked as such –  Ryan Oct 11 '12 at 9:54
    
I had to wait ten hours before answering. I put it in the comments in case I forgot. Thanks. –  Steve W Oct 11 '12 at 13:44
add comment

1 Answer 1

I figured it out. I just created a test list with two date columns and a workflow to add time to a date value. When I added one month to 1/31/2012 it returned 2/29/2012. When I added one month to the 15th, it returned the 15th of the next month.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.