Jump to content

Recommended Posts

Posted
Dear all, I just want to identify if the year of the date of my Date Column has 365 or 366 days. I have tried to use the function DateDiff beteween 01/01/2018 ans 12/31/2018, for example, but it does not work because this function seems to be used only with columns and not absolut values. Could someone help me
Posted

DateDiff('day',date(Year([datecol]),1,1),Date(Year([datecol]),12,31))+1

This takes the year of your datecol and manually sets the month and day to Jan1 and Dec31. Add one at the end as the end date itself is not included in the count.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...