User (saeedq@systemsltd.com.pk) posted:

I used following vode to get the system date.


##################################################
static Month;
static MM;
static DD;
static YYYY;

# getting date time
TempDate=time_str(get_time()); #get date
# taking the DD
DD=substr(TempDate, 9, length(TempDate)-22);
# taking the MM
Month=substr(TempDate, 5, length(TempDate)-21);
if (Month == "Jan")
MM = 01;
if (Month == "Feb")
MM = 02;
if (Month == "Mar")
MM = 03;
if (Month == "Apr")
MM = 04;
if (Month == "May")
MM = 05;
if (Month == "Jun")
MM = 06;
if (Month == "Jul")
MM = 07;
if (Month == "Aug")
MM = 08;
if (Month == "Sep")
MM = 09;
if (Month == "Oct")
MM = 10;
if (Month == "Nov")
MM = 11;
if (Month == "Dec")
MM = 12;
# taking the YYYY
YYYY=substr(TempDate, 21, length(TempDate));
# If months are < 10 , then concatenate "0" with month.
if (MM >= 10)
prm_system_date =MM&"/"&DD&"/"&YYYY;
if (MM <= 10)
prm_system_date ="0"&MM&"/"&DD&"/"&YYYY;


################################################## #######
you can format it in any way you like.
Saeed Qasim

--- In winrunner@y..., "Pranav Pacholee" <ppacholee@y...> wrote:
while playback time. Essentially what the script has to do is to take
the system date, then increment it by one day and insert it in to the
AUT.
or MMDDYYYY ?