Using value of for date cmp
Removing extra whitespace
Improving the performance of calculating week count between two dates