Datetime access

closes #659