# Date: How to describe timespan?

**URL:** https://community.mp3tag.de/t/date-how-to-describe-timespan/49523
**Category:** General Discussion
**Created:** [July 2, 2020, 7:54am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523 "2020-07-02T07:54:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tagmusing](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@tagmusing](https://community.mp3tag.de/u/tagmusing)
#### Post date: [July 2, 2020, 7:54am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/1 "2020-07-02T07:54:22Z")

</div>

I wonder if any of you has a good idea. I have a performance date field. Which is usually set straight forward  
like this: 2020-07-02 JJJJ-MM-DD. Sometimes not a single day/date is given, but a timespan, e.g.  
Nov.-Dez. 2020, 1.-3.07.2020 or 1.,2, and 4.07.2020.  
Have you got any suggestions how to handle these and similar case?  
2020-11 to 12, 2020-07-01-03, 2020-07-01-02,04?  
Is there a standrard? A good practice?  
Thank you!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 2, 2020, 8:19am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/2 "2020-07-02T08:19:18Z")

</div>

> [@tagmusing](#):
>
> Is there a standrard?

The only tag fields with a date information are YEAR and RELEASETIME.  
YEAR is defined as 4-digit number.  
RELEASETIME apparently gets deleted from ID3V2.3 tags by some purist applications and defines a point (no span) in time down to the second.  
As there are not other fields, I assume that your field is a user-defined field.  
And as you as a user defined it, you can fill it with whatever you like.

So I think that one has to define what the purpose of that field should be and in what context the field's data will show its virtues. These criteria may then lead to some ideas about an appropriate format.

---

<div class="post-metadata">

### Author: ![tagmusing](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@tagmusing](https://community.mp3tag.de/u/tagmusing)
#### Post date: [July 2, 2020, 9:16am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/3 "2020-07-02T09:16:26Z")

</div>

You are right, it is a user defined field. I use the field mainly to store the date of a performance or the recording.  
But there seems to be a TRDA field: "TRDA The 'Recording dates' frame is a intended to be used as complement to the "TYER", "TDAT" and "TIME" frames. E.g. "4th-7th June, 12th June" in combination with the "TYER" frame."  
That would make it a combination of YEAR and DATE. Although I would say it makes more sense with TORY/ORIGYEAR.  
I just want so store the inforamtion of the performance or recording date in the file. But sometimes I use it with albums of previously unpublished songs from long a ago and extract TORY/ORIGYEAR from the performance or recording date.

Before my searches for a standard did not bring any result. Just now I found while looking for RELEASETIME the following: "The timestamp fields are based on a subset of ISO 8601. ... For durations, use the slash character as described in 8601, and for multiple non- contiguous dates, use multiple strings, if allowed by the frame definition."  
But I haven?t read the ISO 8601 yet.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 2, 2020, 9:32am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/4 "2020-07-02T09:32:10Z")

</div>

I see what you do. And that is up to you as you could continue to do so without anybody noticing.

But if you want to re-use the data for something, e.g. use MP3tag to filter for a certain span (e.g. "show me all festivals that took longer than 3 days") and transform the result into a playlist to be used in a player, then you would need structured data to do the calculations.  
But if you enter the dates only for record keeping purposes - go ahead.

---

<div class="post-metadata">

### Author: ![tagmusing](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@tagmusing](https://community.mp3tag.de/u/tagmusing)
#### Post date: [July 2, 2020, 9:51am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/5 "2020-07-02T09:51:35Z")

</div>

If I understand the ISO correctly a timespan is given as 2020-11/12, 2020-07-01/03 or 2020-07-01/2020-07-03 Which is fine with me, as I don't write to a filename (/).  
But what would that mean: "for multiple non- contiguous dates, use multiple strings" ?  
Something like that 2020-07-01/02, 2020-07-04 or would I have to write it in two tags  
2020-07-01/02//2020-07-04?

How could I structure the data, to achieve what you are suggesting?

Another thing, the definition for the TRDA field is not realy structured, is it?  
"The 'Recording dates' frame is a intended to be used as complement to the "TYER", "TDAT" and "TIME" frames. E.g. "4th-7th June, 12th June""  
That looks more like just text.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 2, 2020, 10:56am UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/6 "2020-07-02T10:56:47Z")

</div>

The longer I think of it:  
Why don't you introduce 2 user-defined fields?  
One PERFORMANCE\_START, the other one PERFORMANCE\_END.  
It is then up to you to develop some kind of semantics.  
E.g.: Why be overly picky with

> [@tagmusing](#):
>
> 1.,2, and 4.07.2020.

but have a

> [@tagmusing](#):
>
> Nov.-Dez. 2020

span of months ...  
So in case of the July event, start date would be 01.07.2020, end date would be 04.07.2020. I would ignore the gap - unless you know that the gap is important. But then you should know which recordings happened on the first 2 days and which one after the gap. And set the dates accordingly.  
in case of the nov-dec-event it would be 01.11.2020 and 31.12.2020  
If you know the exact date of a recording, then you could use an exact start and end performance date.  
The main purpose is: get the data unified and structured.

---

<div class="post-metadata">

### Author: ![tagmusing](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@tagmusing](https://community.mp3tag.de/u/tagmusing)
#### Post date: [July 2, 2020, 2:09pm UTC](https://community.mp3tag.de/t/date-how-to-describe-timespan/49523/7 "2020-07-02T14:09:40Z")

</div>

you are right, when I know the correct date, I can set the date per Track differently. If it is not known, than it should not matter that much. And anyway, I also have it in another Notes field as text.  
For the month span, if I knew the dates I could use 2020-10-12/2020-12-15 which would be the ISO way or as you suggested a start and end field.

Thank you! I got me on the right track.
