Home  /  Training  /  Webinars  /  Working with dates and times in Stata

Webinar: Working with dates and times in Stata


Duration: 1 hour
Where: Join us from anywhere!
Cost: Free—but registrations are limited


Many analyses rely on dates. For example, you might need to calculate the time between two dates, or perhaps you plan to fit a time-series model or perform survival analysis. Before you can perform your final analysis, you'll want to make sure that your dates are properly stored and ready for use. Dates are often coded differently by different researchers and stored differently across software packages. You might be working with standard dates and times, while your colleague prefers UTC dates and times. How do you proceed with the dataset they hand you? You are working with Stata, but your colleague might hand you a dataset created using a different software. Perhaps your data include daily dates, but you may need to work with monthly dates. How do you proceed?

In this webinar, we will provide solutions to these challenges and more using Stata's date and time features. These features allow you to easily convert from one type of date and time to another. Whether you want to work with calendar dates, focus on business dates, compute time between dates, or even use dates in your expressions, you will see how this can be done in Stata.

We demonstrate how to build dates and times from components, extract only those portions that are of interest to you, or simply customize them to your liking.

How to join

The webinar is free, but you must register to attend. Registrations are limited so register soon.

We will send you an email prior to the start with instructions on how to access the webinar.

Presenter: Gabriela Ortiz

Gabriela Ortiz portrait

Gabriela Ortiz is a Senior Applied Econometrician at StataCorp LLC. She holds a bachelor's degree in psychology from the University of California, Davis and a master's degree in economics from California State University, Long Beach. Gabriela is a primary author of Stata's reporting manual and has contributed to the development of each of the reporting features. She also developed and regularly teaches several of Stata's webinars.


Registration is now closed.

To be notified of future course offerings, sign up for an email alert below.

First name *
Last name *
Email address *
Confirm email address *
Country *
Company/Organization/University *
Department/Field *
Stata serial number
Yes, I would like to receive emails regarding the following:

We appreciate that our users do not want to be inundated with email. Those who sign up to receive emails can anticipate receiving no more than a couple in a month. For example, someone who signs up to be informed of Stata Conferences may receive four emails in one year.

To ensure delivery of emails to your inbox, add [email protected] to your address book.

StataCorp has a strict privacy policy.