BillingDay ( DayOfMonth )
Rate this function: Average rating: 4.0 (8 votes) Discuss this Custom Function
Brian Dunning, BrianDunning.com
http://www.briandunning.com
Makes sure the DayOfMonth given is actually a day in the current month.
Sample Input:
|
Sample Output:
|
Description:
Enter a day of the month, like 30, and the function will return a valid day of the current month.
This handles cases where the current month has fewer days in it than the day of month entered.
Handles leap years.
Examples:
15 would return 15 in every month
31 would return 31 in December
31 would return 30 in November
30 would return 28 in February
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
GetAge ( birthdate ) |
| |
(Fri, Jul 03, 8:14pm) |
| 2. |
captialLetters ( numWords ; text) |
| |
(Thu, Jul 02, 9:53am) |
| 3. |
Base64ToAscII ( string ) |
| |
(Sun, Jun 28, 11:47am) |
| 4. |
AscIIToBase64 (string) |
| |
(Sun, Jun 28, 11:36am) |
| 5. |
ToggleFlag_cf ( myfield ; myVL ; pos ; neg ) |
| |
(Fri, Jun 26, 12:41pm) |
| 6. |
IsDaylightSavings ( TS ) |
| |
(Thu, Jun 18, 1:56pm) |
| 7. |
DaylightSavingsEnds |
| |
(Thu, Jun 18, 1:38pm) |
| 8. |
DaylightSavingsBegins |
| |
(Thu, Jun 18, 1:35pm) |
 |
|
Oooh comments and ratings! Love it.
peter vinogradov, hyde park, NY
January 14, 2009 6:43am