Added read and write of date into metadata

Signed-off-by: Werner Macho <werner.macho@gmail.com>