Date Format

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

mlfbuck
Posts: 2
Joined: Tue Mar 25, 2014 4:36 pm

Date Format

Postby mlfbuck » Tue Mar 08, 2016 5:37 pm

I have a variable in Date(10) format that appears as "18-Mar-2016" or ddmmmyyyy. I can click on the variable view tab and manually change the Date format to yyyymmdd and it will update to "2016/03/18".

Is there a Format or Alter Type code that will make this conversion?

Thanks, Mike Fulkerson
GerineL
Moderator
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: Date Format

Postby GerineL » Wed Mar 09, 2016 12:37 pm

you can change the format via syntax, look for instance here:

http://www.spss-tutorials.com/spss-date ... es-basics/

Who is online

Users browsing this forum: No registered users and 1 guest

cron