Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Month calulation issue
#3
Solved: 12 Years, 10 Months, 3 Weeks ago
vIns

thx for the help. I will look up what the "mod 12 + 1" does to better understand this. I am guessing that this is vbScript?

So, I will try

Code:
intMonth = Month(Now) ' 1
ThisMonth = MonthName(intMonth)
Min1Month = MonthName(( intMonth - 1 +11 )mod 12 +1)
Min6Month = MonthName(( intMonth - 6 +11 )mod 12 +1)

etc...

UPDATE:

vIns, Your code worked perfectly for me. Thxxxxxxxx
Reply


Messages In This Thread
Month calulation issue - by mv8167 - 01-05-2012, 01:24 AM
RE: Month calulation issue - by vIns - 01-05-2012, 08:50 AM
RE: Month calulation issue - by mv8167 - 01-05-2012, 08:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Month name select from WebList Box kamalakannan_anandan 2 4,519 07-06-2011, 09:52 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)