Link to home
Start Free TrialLog in
Avatar of SmashAndGrab
SmashAndGrab

asked on

Convert DateTime error:

Hi,

I'm getting an error when trying to convert a datetime to a datetime.  I don't know why.

User generated image
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

can you try to set your value to 08/26/2016 ?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SmashAndGrab
SmashAndGrab

ASKER

just tried this..


User generated image
since you sepcify MM, have you tried: 26/08/2016 ?
you are going to have to do some work to get the string into something datetime can work with.. Months are 2 digits not 1 digit (they may also be 3 characters) I'd fix your input so that it returns 2 digits for the month or you have to do some string manipulation for months prior to October.