As title.
whenModified = modifieddate; return whenModified;
returns
Yes. You need to use DatePart() to get the date or time values.
thankyou