General information
Category:
Coding, syntax & commands
Use:
lnDays = ldMyDate - gomonth(ldMyDate, - month(ldMyDate) + 1) + day(ldMyDate)
It does not depend on SET DATE or other date settings.
Vlad
>Is there an easy way to calculate how many days have passed since New Year's? I want to make sure it takes consideration of leap year too.
>
>TIA,
>James McCourt
Previous
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