Generate Random Date in C# – Programming, Pseudocode Example, C# Programming Example
C# C# Console

Generate Random Date in C#

In this example, I’ll show you How to generate a random date between Jan 1 1970 and the current date.

C# Code:

And example how to use to write 10 random DateTimes to console:




Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: