From: Tony Austin <taustin () solucient ! com>
To: tru64-unix-managers
Subject: Define Variable as Date
Date: Thu, 28 Jun 2001 17:06:32 +0000 [thread overview]
Message-ID: <102653649622130.tru64-unix-managers.marc@archive.invalid> (raw)
[-- 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--
reply other threads:[~2001-06-28 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox