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 dTrialExpiryDat e As DateTime = DateTime.Now.Ad dMonths(1)
This give the value 13/07/2008 13:52:05
I now want to change this value to 07/13/2008
sTrialExpiryStr ing = dTrialExpiryDat e.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 dTrialExpiryDat e As DateTime = DateTime.Now.Ad dMonths(1)
This give the value 13/07/2008 13:52:05
I now want to change this value to 07/13/2008
sTrialExpiryStr ing = dTrialExpiryDat e.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
Comment