Statalist


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

st: querying format for programming


From   "E. Paul Wileyto" <[email protected]>
To   [email protected]
Subject   st: querying format for programming
Date   Thu, 06 Mar 2008 08:35:49 -0500

I need to convert the new date/time format (%tc) to the old standard (%td). However, I need to make sure I don't apply the conversion to non-%tc formats. (Bad things happen.) Is there a function that queries a variable and returns the format (so that I can capture it as a macro)?

Thanks

Paul


--
E. Paul Wileyto, Ph.D.
Assistant Professor of Biostatistics
Tobacco Use Research Center
School of Medicine, U. of Pennsylvania
3535 Market Street, Suite 4100
Philadelphia, PA 19104-3309

215-746-7147
Fax: 215-746-7140
[email protected]
http://mail.med.upenn.edu/~epw/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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