Logstash - not able to insert date in this format 'YYYY-MM-DD hh:mm:ss'

My mapping is

PUT indexname
{
"mappings": {
"dynamic_date_formats": ["YYYY-MM-DD hh:mm:ss"]
}
}