import json


def update_date_picker(id_date_picker, datasets):
    """Initialize date-picker min and max allowed date."""
    datasets = json.loads(datasets)
    return datasets['chat_min_date'], datasets['chat_max_date']