Demo test containing an example application:

With more detailed explanation is available here:

https://github.com/Inflectra/rapise-powerpack/tree/master/WpfDatePicker

 

All the utility functions mentioned in this topic are available in the for copy paste form here: https://raw.githubusercontent.com/Inflectra/rapise-powerpack/master/WpfDatePicker/User.js