Random Date

Questions, comments, and suggestions related to Typeitin.
Post Reply
Namirred
Posts: 2
Joined: Fri Oct 09, 2020 5:58 am

Random Date

Post by Namirred » Fri Nov 13, 2020 6:39 am

Hi

Is there a way to randomise the date? I want to pick a date up to 30 days into the future. I have tried {Var1 Random 30}{Date dd/mm/yyyy,Var1} but it just gets ignored.

Thank you in advance

Namirred

Wavget
Site Admin
Posts: 91
Joined: Wed Jan 16, 2019 4:32 pm

Re: Random Date

Post by Wavget » Fri Nov 13, 2020 11:11 am

Hi Namirred,

You can randomize the date with the following statement:

{Var1 Random 30}{Date mm/dd/yyyy,{Var1}}

The first part randomizes a value between 1 and 30 and stores it in Variable number 1.

The second part prints the date with the random value added to it.

Hope this helps,
Paul.

Namirred
Posts: 2
Joined: Fri Oct 09, 2020 5:58 am

Re: Random Date

Post by Namirred » Wed Dec 02, 2020 9:04 am

I missed the { }

Sorry for the late response

Many thanks

Post Reply