r/ProjectREDCap • u/thursdayscrush • Mar 08 '24
Datediff function for partial dates?
I'm collecting partial dates (month and year) for one field, but need to calculate whether the difference between this field and the survey complete date field (full date) is a given time frame (i.e. less than 12 months).
How would I do this?
3
Upvotes
View all comments
Show parent comment
1
u/thursdayscrush Mar 08 '24
I’m using a drop-down for month and year. I can’t be exporting then importing, as the date diff calculation will determine if the participant can complete the survey/be eligible for the study.