An example to show how to implement partial date