The contribution was designed for hg1.
You will need to switch to serial date numbers for your axis. datetick is probably not compatible so you will probably need to set xticklabels to whatever date string you want.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!