I need some help.
I'm still trying to find a function that i can use to generate a date
Essentially, if i can get a date e.g 20100107 (yyyymmdd)
and then add to that the time, e.g. 161001 (hh:mm:ss)
and then a random number of 4 digits 0001
What i end up with is a unique id that can never duplicate, since each day is unique, in addition, hours and seconds are constantly increasing
and the 4 digits are also random
So, in 1 second, it's unlikely that the random numbers will be duplicated
An ID would therefore be 201001071610010001 (18 digits)
The current date gets generated, but is then stirpped out/comverted to an integer
Could someone please advice and show how i could implement this well?