[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Date problem
In SQR:
1. define 2 variables as a date type
2. put the current date into 1 variable
3. use the DATEADD function to compute the earlier date
begin-setup
declare-variable
date $dttm_now $early_dt
end-declare
end-setup
let $dttm_now = datenow()
let $early_dt = dateadd($dttm_now,'day',-7)
Erik Siradas <erik_siradas@HOTMAIL.COM> on 05/02/2002 09:22:02 AM
Please respond to sqr-users@list.iex.net
To: SQR-USERS@list.iex.net
cc: (bcc: Rick Creel/IT/Aon Consulting)
Subject: Date problem
Hello all,
I have a problem that I hope someone out there can help me with. I need to
make a program that gets a date in the DD-MON-YYYY format of 7 days prior
from the current date. ie. Today's date id 02-MAY-2002, I need to get
25-APR-2002. Anyone have any idea how this can be done. Thank you in
advance.
ERIK SIRADAS
PROGRAMMER/ANALYST
STATE UNIVERSITY OF NEW YORK COLLEGE AT BROCKPORT
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com