Developer's Diary
Software development, with Terry Ebdon
Configuration saves the day

Sunday 2nd July, 2017

The unwanted '0' prefix

Last night I discovered an annoying date issue: WebDoxy's -d option was adding a leading '0' to the date. As I suspected, it was fixable with a simple configuration change. Java's SimpleDateFormat class pads the day number when multiple 'd' characters are used. WebDoxy reads date format strings from a configuration file, config.groovy, so this was a really simple fix:

Interesting web pages


1st July 👈 Top of page 👉 3rd July © 2017 Terry Ebdon.

Find me coding on GitHub, networking on LinkedIn, answering questions on Stack Exchange and hanging out on twitter.