By on May 29, 2013 under SPSS Glossary.

Date Variable


In SPSS, a date variable is a variable holding the number of seconds since (roughly) the year 1582. It is this format which makes it possible to do date calculations such as adding days to a date.

SPSS Date Variables

SPSS Date Formats

There are various ways to display dates in SPSS. A date format can be set by (e.g.) FORMATS birthday (EDATE10). Again, note that this does not change the underlying value in seconds. The most common date formats are

SPSS Date Functions

SPSS Date Format Demonstration

SPSS Date Syntax Example

data list free/now.
begin data
end data

formats now(edate10).

Comment on this Tutorial

*Required field. Your comment will show up after approval from a moderator.

Current day month ye@r *