Board Thread:General Discussion/@comment-15636815-20140122132804/@comment-15636815-20140210032459

Thank you for the compliment. Originally, I had a BUNCH more error checking in the code. However, the only thing those lines accomplished consistently was making me angry and frustrated because they just didn't work. Therefore, I greatly simplified the code, and now the template works perfectly.

IMHO, "year only" is not really a date. Instead of feeding it to the template, we can just type the year. Out of curiosity, other than for seasonal contractors, when would we ever know just the year, without the month?

One of the things I did to simplify the template was to test for, then add year and month at the same time without testing for ; it then tests for and does the same thing. The final "sample output" example has no parameter 'year', so it skips the line that also adds the month. The only output returned is the day, which the template adds before testing for 'year'.

At this point, the code is simple enough that I could add a couple of lines to put variable 'mn' into 'dt' separately from year, and I probably could do it quickly and without much trouble. Before I do that, I'd like to get input from additional people on whether we really need it or not.