in case you ever need to find LastCometDateOfMonth... or, wondered what MOD was


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Bob A on December 30, 2010 at 13:37:02:

apropos the new CometDate processing:

LastCometDateOfMonth (CometDate)
IF ((275 * Month(CometDate)) MOD 9) GT 3 THEN
LastDayOfMonth = 31
ELSE
IF Month(CometDate) GT 2 THEN
LastDayOfMonth = 30
ELSE
IF IsLeapYear (CometDate) THEN
LastDayOfMonth = 29
ELSE
LastDayOfMonth = 28
ENDIF
ENDIF
ENDIF
LastCometDateOfMonth = CometDate(Month(CometDate),LastDayOfMonth,Year(CometDate))
RETURN


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]