BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ihsan-Mahdi
Quartz | Level 8

Hello,

I have two string variables in my set that I'm trying to combine into one datetime variable formatted DATETIEM20. I tried different codes and none of them worked. Help please!

refdisdaterefdistime
3/22/201917:26
4/25/20194:38
7/27/201918:31
7/29/201915:52
8/21/201922:24
10/3/20190:13
4/9/201910:37
12/20/201916:30
8/3/201917:45
11/25/201917:45
1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

UNTESTED CODE

 

date=input(refdisdate,mmddyy8.);
time=input(refdistime,time.);
datetime_variable = dhms(date),hour(time),min(time),0);
--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

UNTESTED CODE

 

date=input(refdisdate,mmddyy8.);
time=input(refdistime,time.);
datetime_variable = dhms(date),hour(time),min(time),0);
--
Paige Miller
Ihsan-Mahdi
Quartz | Level 8
Worked like a charm! Thank you 🙂