An Intermediate Guide to SPSS Programming: Using Syntax for Data Management introduces the major tasks of data management and presents solutions using SPSS syntax. This book fills an important gap in the education of many students and researchers, whose coursework has left them unprepared for the data management issues which confront them when they begin to do independent research. It also serves as an introduction to SPSS programming; all the basic features of SPSS syntax are illustrated, as are many intermediate and advanced topics such as using vectors and loops, reading complex data files, and using the SPSS macro language.

Date and Time Variables

This chapter explains how to use date and time variables in SPSS. Topics covered include the following:

  • How date and time variables are stored in SPSS
  • An overview of SPSS date formats
  • Reading dates with two-digit years in the correct century
  • Creating date variables with syntax
  • Creating date variables from string variables
  • Extracting part of a date variable
  • Doing arithmetic with date variables
  • Creating a variable holding today's date
  • Designating missing values for date variables

How Date and Time Variables Are Stored in SPSS

SPSS date and time variables are stored as floating-point numbers ...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles