HP3000-L Archives

December 2006, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Larry Barnes <[log in to unmask]>
Reply To:
Larry Barnes <[log in to unmask]>
Date:
Thu, 28 Dec 2006 12:14:28 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
I'm trying to take a date that is entered as a string value then convert
it to a date and subtract that date from another date that was created
using datebuild.  When I attempt to subtract one from the other I keep
getting an error.  I've searched the archives and can't find anything on
this.
Can someone set me straight.

Here's what I've tried (inside of MPEX):

	%SETVAR D1 DATEBUILD(70,01,01)
	%SETVAR D2 DATEBUILD(06,12,28)
	%CALC !D2-!D1

	Processing 06/12/28-70/01/01
	                    ^
	Error: Expected date in MM/DD/YY format, not 70/01/01

Thanks for your input.

Larry B.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2