give back times of current month automatically
day(Dateserial(Year(Date),Month(Date)+1, 0))
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Markus Scheible" wrote in message
...
Hi Newsgroup,
I need a code which automatically gives me the number of
days from the current month (e.g. 31 in January, 28 in
February a.s.o.)... some days before, I got the following
code:
Day(DateSerial(Year(Date), Month(Date), 0))
But the problem is that this gives back "31" even today -
when "28" would have been very much better ;o)
Does anyone have a better idea?
Thanks in advance and best regards
Markus
|