I've been looking around on Google, StackOverflow and many other sites but have failed to find an answer to this seemingly so simple question. In SQL you can use NOW()
to generate a unique timestamp of right now, which wouldn't be repeated, example below.
0905b300-9baf-11e7-9257-cbc888cc9932
Its as simple as writing NOW()
in SQL and CQL for that matter, but nobody has said anything about creating this type of string in C#? All I am able to create right now is horrible timestamps using the DateTime
methods.