yes, this is possible. you would want to stick to the way this is done in ISO 19115/19139 metadata for time period type extents though. See for example this snippet:
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod gml:id="1624374152364r23014781936280926">
<gml:beginPosition>2021-06-01</gml:beginPosition>
<gml:endPosition>2021-06-22</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
you can find this in the INSPIRE dataset editor in Identification > Resource > Extent > Temporal Extent.
the code for this can be found in: inspire/gmd/extent/TemporalElement.js and the associated template.