I have a a long which has the time in UTC format as a timestamp for some data, now I want to convert it to this format: month 1-12 Day 1-31 24 Hour format 0-23 minute 0-59 second 0-59 subsecond nanoseconds 0-999,999,999
now the nanoseconds can obviously be set to 0 as it doesnt need to be that accurate.
What is the best method to do this? I've seen loads of examples but they are confusing and don't seem to work for converting an arbitary date, they only work for converting the exact time at that moment.
Thanks! :)