Hi,

the best way would be probably randomizing the Time part (the number
of milliseconds since 1970/01/01) of the Date(). For example in
javascript

var mydate=new Date();
mydate.setTime(mydate.getTime()*Math.random());
mydate.toUTCString();

will output a date string in UTC format (like "Sat, 19 Jan 1985
06:22:28 GMT") for a date between now and 1970/01/01.

Regards,
Andrey

On Thu, Oct 23, 2008 at 3:47 PM, Hiro Protagonist
<[EMAIL PROTECTED]> wrote:
> Hi team,
>
> I need to generate random dates in JMeter. I know that by merely using
> the random function and then 'building' the date string I can get 90% of
> the way there - however, in order no to risk faulty dates, I always lose
> out on dates after the 28th.
> The obvious problem here is the interdependency between the months and
> their respective number of days.
> Does anyone know of a quick and easy solution ?
>
> Thanks !
>
> hiro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
diem perdidi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to