added date option
fix for Window compilation