Timestamp to Date function ( tsToDate )