improvement foo function
add filter and sort function
amend Date format to Y-m-d