Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 05:17:22 +0000



Post From: ACSIL convert string to time

[2016-01-28 23:24:29]
@sstfrederik - Posts: 406
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());