Date formatters sample code