Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Formatting dates on a graph bar label

Subject   st: Formatting dates on a graph bar label
Date   Fri, 29 Jul 2011 16:15:42 +0100

Dear Statalister,

I feel stuck as my graph always displays the actual Stata numbers for the date no matter how I specify the label.

First I did:

generate datenumber = date(date, "DMY")
format datenumber %td


graph hbar v1 v2 v3, over(datenumber)

The label won't change to something like 01/01/2011, no matter how I play around in the graph editor.

Is this enough information (using Stata 11.2)? I reckon it's a simple problem.

Everywhere else the behaviour is as specified in the help file on date and times.

Many thanks,

Please access the attached hyperlink for an important electronic communications disclaimer:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index