M
MartinTeefy
Hi,
I need to write todays date incremented by one month as part of a string for
a licence but i'm getting odd results as the tostring function is extracting
the middle data section of the datetime variable:
Dim dTrialExpiryDate As DateTime = DateTime.Now.AddMonths(1)
This give the value 13/07/2008 13:52:05
I now want to change this value to 07/13/2008
sTrialExpiryString = dTrialExpiryDate.ToString("mm/dd/yyyy")
but the string contains 52/13/2008 i.e. it takes the 2008 13:52 from the
middle section of the datetime variable???
Any ideas
Thanks
I need to write todays date incremented by one month as part of a string for
a licence but i'm getting odd results as the tostring function is extracting
the middle data section of the datetime variable:
Dim dTrialExpiryDate As DateTime = DateTime.Now.AddMonths(1)
This give the value 13/07/2008 13:52:05
I now want to change this value to 07/13/2008
sTrialExpiryString = dTrialExpiryDate.ToString("mm/dd/yyyy")
but the string contains 52/13/2008 i.e. it takes the 2008 13:52 from the
middle section of the datetime variable???
Any ideas
Thanks