License Renewal News
Home
About Us
Customer Stories
Content
Community
Careers
Products
Contact us
media room
 
Forum Home Forum Home > SPSS Forum main > Data Analysis
  Active Topics Active Topics
  FAQ FAQ  Forum Search   Register Register  Login Login

Changing date into serial number

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
goocha View Drop Down
Newbie
Newbie


Joined: 02 Sep 2010
Online Status: Offline
Posts: 1
  Quote goocha Quote  Post ReplyReply bullet Topic: Changing date into serial number
    Posted: 04 Sep 2010 at 11:29pm
Hello,
I have a big spss data.
At the data I have dates of 4 years in the format of dd-mmm-yyyy hh:mm:ss.
I would like to create a new variable that will be a serial number of the date.
For each date I have several rows.
For example:
I would like to change the 1-Jul-2010 into the value `1`
2-Jul-2010 into `2` etc.

How can I do that?

Thanks in advance.
Back to Top
Raj View Drop Down
Newbie
Newbie
Avatar

Joined: 08 Mar 2010
Location: India
Online Status: Offline
Posts: 15
  Quote Raj Quote  Post ReplyReply bullet Posted: 06 Sep 2010 at 4:33pm
Hi goocha,
nice to hear from u.U must be knowing in pasw statistics 18.0/spss 18.0 we have an option under data/transform menu called date and time wizard.Using this option u can do a various calculations wrt date and time.
I am sure that using that option u can get the part of the date and make it a separate varaible in the data editor.
U can extract the part of the date variable for eg. u can extract only the day of the date variable or month of the date variable or the year of the date variable.I hope u will get it.
bye.
"Loving SPSS"
Rajesh M S
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bookmark and Share

(c) All rights Reserved - SPSS South Asia