Challenge: convert a 'modified date' DateTime
of an image file to a version number / string suitable for maintaining uniqueness in a url, so each modification of the image generates a unique url, the version number/string to be as short as possible.
The shortness of code is secondary to the shortness of number/string Apologies if this does not really qualify for code-golf status :-)
Requirements
- C#, .Net framework v4
- output must be valid characters for a folder-name in a url.
- DateTime precision can be reduced to nearest minute.
EDIT: this is not entirely theoretical / Puzzle, so I guess I'd rather keep it here than on code-golf stack exchange?