I am assigning a DateTime variable to get the current date and time using System.DateTime.Now. When I do this, the following example appears:
09/04/2019 09:51:05
I would now like to split this value by the space so that I only get the time (09:51:05). I then want to assign this time to another datetime variable that I have created (StartTime). However, I am having trouble because neither of the variables are string variables. Any help would be greatly appreciated.
We are creating two separate variables for analytics purposes. Both values will be inserted into a SQL data table, then imported into a data visualization software. In order to model some of the data that we need, both sets of values are required.