Fully working example of DateTime, extensible for other methods