i have a fileinfo array which loads jpegs from a folder.
When I add them to the list box using the creationtime property it adds both the date and time, for example: “07/07/2010 14:28”
Here is the code I use:
foreach (FileInfo fi in files5)
{
sessionframeslstLISTBOX.Items.Add(fi.CreationTime);
}
I want it so that It just says the time, ege: “14:28”
How can I format the string before its added to the listbox so that it omits the date?
1 Answer