Fixed sample code
Sample page for custom date patterns