General information
Category:
Coding, syntax & commands
Shane,
James has a good point.
If you are passing the number of the month, you can modify my simple
function like this:
FUNCTION NumDays
lparameter xmonth
private xdate
xdate=ctod('01/01/'+str(year(date())))
return gomonth(gomonth(xdate,xmonth-1),1)-gomonth(xdate,xmonth-1)
Note that it is important to know which year you are in when using
the function because of the leap years.
:)
Pascal
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only