Random Date Generator
















Datetime format helper

You can create your own date and time format. Using these characters in Custom format input.

Day
jWithout leading zeros: 1 to 31
d2 digits: 01 to 31
DThree letters: Sun through Sat
lFull text: Sunday through Saturday
SSuffix, 2 characters: st, nd, rd or th
Month
nWithout leading zeros: 1 through 12
m2 digits: 01 through 12
MThree letters: Jan through Dec
FFull text: January through December
Year
y2 digit: 99 or 13, etc.
Y4 digit: 1999 or 2013, etc.
Time
g12-hour format of an hour without leading zeros 1 through 12
G24-hour format of an hour without leading zeros 0 through 23
h12-hour format of an hour with leading zeros 01 through 12
H24-hour format of an hour with leading zeros 00 through 23
iMinutes with leading zeros 00 to 59
sSeconds with leading zeros 00 to 59
aLowercase Ante meridiem and Post meridiem am or pm
AUppercase Ante meridiem and Post meridiem AM or PM
Text
\Escaping characters, of: \o\f, the: \t\h\e, in: \i\n

How to work with random date generator

We are proudly present you the most flexible date and time generator. There are predefined date and time formatting or you can create your own format. Choosing weekdays is really the must have feature, so we have it. Sorting and excluding duplicates are also included. Results can be exported to many data formats like CSV, Excel, Json, PHP, Python Array, ... Algorithm generates pseudo-random values and should not be used for cryptographic purposes. On the other hand the level of randomization is sufficient for all common needs. We have many users using our tool as day, month and year generator. Are you planning birthday, wedding or gathering? Give me a random date. This tool can be also used as random birthday/death generator.

Please be patient. It may take some time to calculate the results, especially if you combine the No Duplicates, Days of the Week and Time limit options.

Number of values

How many results do you want. Max. number of results is limited to 100 000.

Start

The beginning of time interval. Please fill date, month, year and time. If you are only interested in the date, leave the time part as it is. Start year must be 1500 - 2200.

End

The end of time interval. Please fill date, month, year and time. If you are only interested in the date, leave the time part as it is. End year must be 1500 - 2200.

Time limit from & Time limit to

Optional fields. You can limit the generated time to only part of the day. Time limit never increases the interval of possible results. If the Start time is more restrictive than the Time limit field, the Start time wins (second example). See examples:

1) Time limits are between Start and End interval:

Start:1st Jan 2022 00:00 (12:00 AM)
End:3rd Jan 2022 23:59 (11:59 PM)
Time limit from:06:00 (06:00 AM)
Time limit to:10:00 (10:00 AM)
Possible results intervals:1st Jan 2022 06:00 - 10:00
2nd Jan 2022 06:00 - 10:00
3rd Jan 2022 06:00 - 10:00

2) Time limits are not between Start and End interval:

Start:1st Jan 2022 08:00 (08:00 AM)
End:3rd Jan 2022 09:00 (09:00 AM)
Time limit from:06:00 (06:00 AM)
Time limit to:10:00 (10:00 AM)
Possible results intervals:1st Jan 2022 08:00 - 10:00
2nd Jan 2022 06:00 - 10:00
3rd Jan 2022 06:00 - 09:00

Weekdays

Simple choose which day of the week you want to see in the results. All days are selected by default. The most used option is weekdays only or weekends only.

Formats

You can choose from predefined date, time or datetime formats. The custom field can be used if you have a special requirement for the final date format.

Since many of you are asking us, we added more options here: ISO 8601, RFC 2822 and timestamp (UNIX epoch)

Sorting

Default sorting is none, it means random. The final set can be also sorted in ascending or descending order.

Duplicate

Default result set can have duplicate values. To avoid duplicates, check the Without duplicates option.

Change log

Version
2.4Results without duplicities is now possible.
2.3Time start and time end added. New inputs for limiting time (from, to).
2.2New output data format added (Json, Excel, PHP, Python).
2.1Added new date and time formats (ISO 8601, RFC 2822, timestamp). Help improvements.
2.0New core. Specification, results and help on the same page.
1.0Original version from https://random-date-generator.com/

Leave a comment

Reply to

Hi, I think the new version 2.4 does what you want.

Jan

Comments

WOW, This is a really simple way to create a list of random birthdays. It has a lot more options than any other sites I tried. I appreciate that there is no annoying advertising. Keep it up boys.

Cindy P. | 2022-10-02 15:54:15

Hello are you the owner of this business?
I was just on your website and I have a question about your business.


Liam Smith | 2022-09-23 02:14:14

@Liam Smith: Hi, what do you want to know?

Jan | 2022-09-25 15:32:48

Glad you updated the old version and it is possible to create a date from the past. For me this is important in my fictional RPGs that I make.

Andrew Colins company | 2022-09-12 16:54:10

What is the limitations how can be this app used? Is it open source, free or do I need pay for usage? I would like to connect this to my online tool as an API service.

Thanx

Peter McBride | 2022-07-31 20:14:32

@Peter McBride: Hi Peter,

You can use our generator for any purpose. It is free of charge. The only limitation is the max number of 100 000 results. We are working on the Professional version, which will be suitable for deployment in larger business. We will be glad for any feedback or request for features.

Regards Jan

Jan | 2022-08-15 19:22:22

Hi

Amanda Waterhouse | 2022-07-11 02:50:48

Pick a day after July 10,2022

Amanda Waterhouse | 2022-07-11 02:50:05

@Amanda Waterhouse: Hi,

it is easy. Just change values in fields. Day is number, month can be selected from the list and year is number.

Jan | 2022-07-12 16:24:23

Hi, why there are year limitations? It would be great to generate dates for more future than 2200. I'm scifi fan.

Ned Woods | 2022-07-04 21:55:29

Would love to see you add limitations for times that could be selected. For instance, we are using the date and time generator to select a random winner based on appointment times. Our office is only open from 8am-5pm, and we'd like to limit times to our open hours.

Pete | 2022-06-23 15:18:06

@Pete: Hi Pete,
It was really challenging, but now it's there. You can use "Time limit from" and "Time limit to" options for that.

Jan | 2022-06-23 18:55:05

Thanks a lot for this generator.
Possible addition: ISO datetime format "Y-m-d\TH:i:s\Z"

Simon | 2022-06-22 11:40:24

@Simon: Hi Simon,

thanks for the hint. We added ISO format since version 2.1

Jan | 2022-06-22 21:46:05

I love this generator. It would be great if I could select a time frame within 24hrs

Davidson | 2022-06-20 08:32:15

@Davidson: Hi, this is possible from version 2.3.

Jan | 2022-06-20 09:43:31

Thanks!

Is there also a sequential date generator?

Mr.Rowbot | 2022-06-20 07:15:10

I was wondering if there is an option to generate these dates without the random factor. So it would be listing the dates in the correct order and without any repeated dates. I always would have to generate 30 dates. Is it possible to do this?

Thank you very much for your time and have a great weekend!

Nicolas Barros | 2022-06-19 10:38:48

@Nicolas Barros: Hi, I think the new version 2.4 does what you want.

Jan | 2022-06-19 19:40:20

Hi, I love this site.
It saves me hours in my preparation to school project.

Martin | 2022-06-18 23:17:56