>>I think I figured out all the problems with this directive. It now works the way I want.
>>
>>Thanks for your help.
>
>So what changes were required ?
I made several. I had to change the format, I also introduced a flag for programmatic change and I also made sure that null days are shown as null (or placeholders) instead of automatically setting them to today's date and time as it was in that directive.
If it's not broken, fix it until it is.
My Blog