Re: Header/Footer formatting question.
- To: mathgroup at smc.vnet.net
- Subject: [mg21654] Re: Header/Footer formatting question.
- From: paulh at wolfram.com (P.J. Hinton)
- Date: Fri, 21 Jan 2000 04:00:03 -0500 (EST)
- Organization: "Wolfram Research, Inc."
- References: <8615sh$juk@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <8615sh$juk at smc.vnet.net>,
bt585 at freenet.carleton.ca (Michael Chang) writes:
> I'm running Mathematica 3.0.x on Windoze NT, and would like the *current*
> date to appear as
>
> Monday January 17, 2000 (say ... this is today's date)
>
> in my (left) footer. In the past, the command given to me was
>
> Cell[ TextData[ {ValueBox[ "Date"]}], "Header"]
>
> in the File->Printing Settings->Headers and Footers menu. This used to
> work alright, and output
>
> 12/25/99 (say)
>
> for December 25, 1999. Unfortunately, now it only outputs
>
> 1/17/0
>
> Is there a way that I can get the current date to automatically appear as
>
> Monday January 17, 2000 (say)
>
> or, at the least,
> 1/17/00
Try these on for size.
This will produce:
<Day Name>, <Month Name> <Day>, <Full Year>
Cell[TextData[ ValueBox["DateLong"]]]
This next example will produce:
<Month>/<Day>/<Full Year>
Cell[TextData[{ValueBox["Month"], "/", ValueBox["Day"], "/",
ValueBox["Year"]}]]
--
P.J. Hinton
Mathematica Programming Group paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.