I would like to create a function which would enable me to generate unique values always based on these two entry parameters:
public string ReturnUniqueValue(DateTime date, string ID)
{
// Logic here
}
The date parameter is in the following format:
2017-08-14 11:55:32.00
While the ID is in the following format:
112452573848
I would like to generate a unique hash which is 40 characthers in length and that it never repeats.
Is this doable with datetime parameter + unique id string ?
I figured that datetime is never the same (it's nearly impossible), thus this should be able to always generate unique value?
Guid.NewGuid()