Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //string test = "2019-10-16\t14:49:23\t1.76E-6\tAccept\r";
- //string test = "14:49:23\t1.76E-6\tAccept\r";
- string test = "2019-10-16\t1.76E-6\tAccept\r";
- // test = test.Replace('.', ','); // Läser alla in . istället för , ?
- //Date - Time
- if(test[4] == '-' && test[13] == ':')
- {
- TestLabel.Text = test.Remove(0, 20);
- }
- //Date
- else if (test[4] == '-')
- {
- TestLabel.Text = test.Remove(0, 11);
- }
- //Time
- else if (test[2] == ':')
- {
- TestLabel.Text = test.Remove(0, 9);
- }
- /*
- if (test.Contains("E") || Convert.ToDouble(test) == 0)
- TestLabel.Text = "DET FUNKAR RASSEBASSE";
- else
- TestLabel.Text = "LASSEBASSE BINGBONG";
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement