RE: How to parameterize the date

2011-09-06 Thread Robin D. Wilson
http://jakarta.apache.org/jmeter/usermanual/functions.html

The "__time()" function is what you are looking for.

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
www.KingsIsle.com


-Original Message-
From: sbhosale [mailto:sandeep.bhos...@gmail.com] 
Sent: Tuesday, September 06, 2011 6:39 AM
To: jmeter-user@jakarta.apache.org
Subject: How to parameterize the date

Hi all,

In my application i have date field. I want to take the today's date in this
field. So whenever I run the script it should not fail. Anybody has any
ideas How do I do it. Any ideas.

Thanks,
Sandeep

--
View this message in context:
http://jmeter.512774.n5.nabble.com/How-to-parameterize-the-date-tp4774037p47
74037.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org


-
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org



Re: How to parameterize the date

2011-09-06 Thread Konstantin S.
There is Time function. Read about it

Just the other day I needed to do the same. I created java request and put
this function in there
${__time(,sdate)}

so i get current date in sdate variable here

But you can control date format in this function and alos make it custom.
All this can be found in docs.

On Tue, Sep 6, 2011 at 2:38 PM, sbhosale  wrote:

> Hi all,
>
> In my application i have date field. I want to take the today's date in
> this
> field. So whenever I run the script it should not fail. Anybody has any
> ideas How do I do it. Any ideas.
>
> Thanks,
> Sandeep
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-to-parameterize-the-date-tp4774037p4774037.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>