get history data before today date instead of searching for today date in history file