IQVIA interview question

Regarding custom functions : datetime function and accessing data points.