Allow to define in and out format for date