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

Re: st: Regarding date format and Repeated count

From   Marck Bulter <[email protected]>
To   [email protected]
Subject   Re: st: Regarding date format and Repeated count
Date   Mon, 10 Dec 2007 14:02:53 +0100

Mr. Arup Kumar Das wrote:
Dear statalist,

I have following queries

1. Date Format: My date format is dd-mm-yyyy in the (%16s)and some time
(%20s). I have used stata transfer to transfer data from excel. How can I
get the format as 'mm-YY'(Forexample: Mar-07).

2. Repeated count: If the clients visits the center for same services more
than one times during a reporting period (month, quarter etc). How can I can
I calculate
a. number of individuals visited for same services &
b. number of visits for the same service.

Looking forward for your suggestion


* For searches and help try:

As for one, I had the same problem, try this,

generate mmyy=mofd(date)
format mmyy %tm

For information on, mofd:

This wil yield the format you requested.


* For searches and help try:

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