I have a calendar which when user selects a date, the date is used as part of the response and redirect. e.g. 01/04/2006
On redirecting to a new page the date part of the response is used as part of an ongoing query.
When the user selects any date of 1 to 12, then the date is being treated as mm/dd/yyyy
but when the selection is above 12, then the date is being treated as dd/mm/yyyy
Note though-the value of the querystring remains as selected i.e. 01/04/2006, but it looks like it’s when the string is used in the select query that it is all going awry.
Should I be switching characters around if the first two characters are less than 12?
Has anyone a solution to this please?
TIA
Alan