I currently run an array which reads 6 or so lines from a text file. Below is an example of how i'm extracting the required information from the lines in the text file
line = allLines.Where(Function(x) (x.StartsWith("plandate="))).SingleOrDefault()
If line IsNot Nothing Then
AllDetails(numfiles).pDate = line.Split("="c)(1)
End If
In this instance I'm extracting the planned date in the format dd/MM/yy
For part of a sub I need to change the reference of the format from dd/MM/yy to dd MMMM yy.
I've tried the following
Dim uPland As String = AllDetails(n).pDate.ToString("dd MMMM yy")
however i get the following error message
Unable to cast object of type 'System.String' to type 'System.IFormatProvider'.
The format needs to be changed as I folders which are created with dates as a title using the dd MMMM yy format.
If anymore code is needed to be posted then please let me know
Any guidance please
pDate?