vba - Determine if date is before or after the 15th of the month -


i have function applies rate based on number of months item has been stored. charge half rate if item stored after 15th. function i'm using determine amount of months item stored datediff() function. returns number of months between 2 dates. how determine if date before 15th or after? if use datediff(d,1/1/2015, 4/1/15) value greater 15 cannot see if date before or after 15th using greater or less 15. how can determine if either of dates (entrance date date item entered storage area , exit date date removed) before or after 15th?

vba models date floating point double. integral part stands day. advances 1 per day.

it provides function day(date) can use extract day of month in date occurs.

for example, cdate(40000) return 6-july-2009, , day(40000) returns 6.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -