Just use some more digits for x.
yyyymmddxxxxxx

And watch out for the y10k bug! If you constrain year to 4 digits, you will overflow a few thousand years from now and year will indeed be starting with a zero! What's worse, that will happen every 10,000 years.
