I greatly admire that you have created a module and I did download it, but then realised that the Date Views module has a contextual filter that filters on the basis of the selected granularity (eg hour, month, day) and takes an argument of the type 'YYYY-MM-DD'.