Get start and end parameters according to given TSDataset.
ts (TSDataset) –
start (Optional[str]) –
end (Optional[str]) –
Tuple[str, str]