I have a label on a page load event that I'm trying to display the current date and time in the long format and have this line of code:
but when I load the page I am presented with the error that the Input String was not in a correct format. I thought that that format was correct. Can anyone tell me what is wrong with my format?Code:TimeDateLabel.Text = String.Format("Today's date is {D}", DateTime.Now)
Thank you
Doug




Reply With Quote