* Define Variable as Date
@ 2001-06-28 17:06 Tony Austin
0 siblings, 0 replies; only message in thread
From: Tony Austin @ 2001-06-28 17:06 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0FFF4.AE5C1FB0", Size: 2207 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0FFF4.AE5C1FB0
Content-Type: text/plain;
charset="iso-8859-1"
I am trying to help one of my colleagues:
She wants to take an inputed value, define it as a date and subtract 1 day
from it. For example
Input Date (YYYYMMDD):
19990101
Result:
19981231
We can define the input as an interger, but then the math doesn't work out.
Is there a way to define this as a date, without reset the server date?
Thank you.
------_=_NextPart_001_01C0FFF4.AE5C1FB0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>I am trying to help one of my
colleagues:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>She wants to take an inputed
value, define it as a date and subtract 1 day from it. For
example</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>Input Date
(YYYYMMDD):</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>19990101</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>Result:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>19981231</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>We can define the input as an
interger, but then the math doesn't work out. Is there a way to define
this as a date, without reset the server date?</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=353190417-28062001>Thank
you.</SPAN></FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C0FFF4.AE5C1FB0--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-28 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 17:06 Define Variable as Date Tony Austin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox