Add date attributes to user function