Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 12:27:35 +0000



Post From: ACSIL convert string to time

[2016-01-28 23:24:29]
@sstfrederik - Posts: 404
Hi,

Example code that works.


SCString DateString ("2011-12-1");
SCDateTime DateValue;
DateValue = sc.DateStringToSCDateTime(DateString);

SCString TimeString ("17:00");
SCDateTime TimeValue;
TimeValue = sc.TimeStringToSCDateTime(TimeString);
    
SCDateTime DateTime;
DateTime.SetDateTime(DateValue, TimeValue.GetTime());