add date function
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index 7cb7453..de5d77b 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -2403,6 +2403,14 @@
    *pBstr = Item.val.string;
 }
 
+void QCBORDecode_GetDateStringInMapSZ(QCBORDecodeContext *pMe, const char *szLabel, UsefulBufC *pBstr)
+{
+   // TODO: error handling
+   QCBORItem Item;
+   QCBORDecode_GetItemInMapSZ(pMe, szLabel, QCBOR_TYPE_DATE_STRING, &Item);
+   *pBstr = Item.val.string;
+}
+
 void QCBORDecode_GetTextInMapSZ(QCBORDecodeContext *pMe, const char *szLabel, UsefulBufC *pBstr)
 {
    // TODO: error handling