diff --git a/vtdirektmarketing.php b/vtdirektmarketing.php
index 0271a83..1ba51f0 100755
--- a/vtdirektmarketing.php
+++ b/vtdirektmarketing.php
@@ -137,7 +137,11 @@
$leistung_von = $custom_fields['invoice']['leistung_von'];
$leistung_bis = $custom_fields['invoice']['leistung_bis'];
if ($leistung_von && $leistung_bis) {
- echo '
Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '
';
+ $leistung_von = new DateTime($leistung_von);
+ $leistung_bis = new DateTime($leistung_bis);
+ $leistung_von = $leistung_von->format('d.m.Y');
+ $leistung_bis = $leistung_bis->format('d.m.Y');
+ echo 'Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '
';
}
if ($leistungsort) {
echo 'Leistungsort: ' . $leistungsort . '
';