Coll date / Time formatting

lexpower's icon

I'm trying to store Coll data in the form [date, time time;]

For example: 04102019, 0651 1730;

Every time I input the data above it loses the leading zeros on the date / time. Does anyone know a way to get it to keep them intact?

Many thanks...

Floating Point's icon

you need to make the date format a symbol, then parse it into coll prepended with the store message:

Max Patch
Copy patch and select New From Clipboard in Max.


I don't know how you are constructing your date & time tokens, but in any case they need to be in the form of a symbol in max (not as integers)

lexpower's icon

Thanks a lot for your reply - super helpful and much appreciated.
Is there anyway to define these numbers as symbols within a text edit document and paste it in in one go?

Many thanks!

Floating Point's icon

do you mean double click on the coll object and paste the values in directly from a text editor? depending on what the original format of the text is and what software you are using, somehow use a search and replace operation(s) to reformat the data to what coll expects.