[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: A beginner's trouble with dates

From   "Eduardo Palencia" <>
Subject   st: A beginner's trouble with dates
Date   Mon, 23 Jun 2008 22:57:58 +0200

I am building a database of daily activity in an ICU, and each day I
have a new row. I am planning to analize data by month. My variable
"date" is double, and has the format %tc.
I want to extract the month of the date in a new variable, "ICUmonth", this way:

generate ICUmonth=month(date)

Variable ICUmonth is created, but all its generated values are missing
values. Why?

Thanks in advance,

Eduardo Palencia Herrejón
Jefe de Servicio de Medicina Intensiva
Hospital "Infanta Leonor", Madrid
C/ Gran vía del Este, 80
28031 Madrid
Tfno: +34619204428
Fax: +34911919099

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index