vchethan|#2206|Fixed the issue in query and default initial date