UPDATE: SEE REPLY TO THIS COMMENT...
Frederik,
On April 3, 2014 you made the following entry in a (now closed) discussion:
For the date conversion I've written another node that will make it into NodeBox itself soon. For now, I've attached it here.
I takes an input format and an output format, both in a format you specify. The format uses Java's SimpleDateFormat -- see that page for examples. http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Discussion link: https://forum.nodebox.net/t/13585127/visualising-xml-files
I've been using your date format.clj custom node in a number of my projects and it's been a big help. This really should be an official NodeBox node.
However, today I ran into a subtle issue that people should be aware of if they use this node. The node itself is fine. The issue is that Java's SimpleDateFormat can be VERY tricky.
I had a series of start and end timestamps that look like this: 2017-01-31 16:58:34
For the input format I had been using YYYY-MM-DD HH:mm:ss
I then calculated the difference in seconds between the two dates by using "u" as the output format and subtracting the two numbers.
But when I looked closely, the difference values were slightly off, usually by only a few seconds.
Looking more closely at the doc you linked to, I realized I should be using yyyy instead of YYYY.
That helped, but a few of the times were still SLIGHTLY off. I thought I was starting to lose my mind until I found this:
The following input format finally gave me correct values: uuuu-MM-DD HH:mm:ss
By the way, both of those docs say that DD is day in year, while dd is day in month. I interpreted that to mean I should be using dd instead of DD, but NO! That change also introduced a very subtle error.
The moral of the story is that anyone using this custom node to should carefully examine the format strings and play with them until you get them right. In general it appears you should use uuuu instead of yyyy.
If you ever add this node (and I hope you do), you should find a more up-to-date doc or include a reference to this issue in your notes.
John