1q) i have my search starting with earliest=-1mon latest=now()
i want to get the dates as startdate = earliest and end date = latest and caluclate the number of days between them
2Q) Also when we use timeticker how can i get the start and end time as fields in the search when we use option like last 7 days
You can use addinfo to return the info_min_time and info_max_time fields from which you can do your calculations.