If these are true SPSS date and time variables, you can just add them.
data list list /bdate(ADATE) btime(TIME).
begin data.
11/17/2000 10:00
1/1/2019 15:30
compute dt = bdate + btime.
format dt (datetime20).
list.
bdate btime dt
11/17/2000 10:00:00 17-NOV-2000 10:00:00
01/01/2019 15:30:00 01-JAN-2019 15:30:00
Hello!
I have two variabels with information I need to combine.
Date of birth (dd-mmm-yyyy) and time of birth (hh:mm). How can I combine
these into one variable containing both date and time of birth in spss?
The objective is to be able to calculate the time interval in hours between
time of arrival to the hospital and time of birth...
Much grateful for help.
Sara
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD