Hi,
I've tried using the Day() & Month() functions as well as the DatePart function, I've noticed that the DAY and MONTH values are sometimes switching from one-another.
In the event that the date is sent as yyyy/mm/dd, the functions return the correct values, however, if the date string is formatted differently, the day and month values are often switched. It has even happened that my year gets switched. Is there a way to grab the day, month and year from a string correctly every time, regardless of what format it comes in as?
Thanks,
Zycmi
I've tried using the Day() & Month() functions as well as the DatePart function, I've noticed that the DAY and MONTH values are sometimes switching from one-another.
In the event that the date is sent as yyyy/mm/dd, the functions return the correct values, however, if the date string is formatted differently, the day and month values are often switched. It has even happened that my year gets switched. Is there a way to grab the day, month and year from a string correctly every time, regardless of what format it comes in as?
Thanks,
Zycmi