Use a real fields.Date for the dates

Vim Regexp for the xml file:

s/bank_valid_from">\(\d\{4}\)\(\d\{2}\)\(\d\{2}\)/bank_valid_from">\1-\2-\3/

Damn.

Perl regexp should be:

s/bank_valid_from">(\d{4})(\d{2})(\d{2})/bank_valid_from">\1-\2-\3/