How can I Truncate a ,NET2.0 string by character?
===

I currently have a string "1_0707201206050239" and I would like to truncate all the characters to the right of and including the "_" char, the issue is that the characters on the left hand side vary based on user input so the length of the string is always different. because the right hand side of '_' represents a date and time (07-07-2012 6:05:02.390AM) the length can vary from 17-14 characters. SO I'm wondering if there's a way to truncate until the '_' is detected?