A
akishore23
Guest
hi, my name is kishore. im using asp with ms access. code is working fine with normal settings i.e US('mm/dd/yyyy') date format.
my actual task is - select records from a table(CPST) between two dates which the user must dates in the format UK('dd/mm/yy'). user will enter dates FromDate and ToDate in Form1.asp. then i carry those two fields with request.form and store in two strings as strFromDate and strToDate.
then i used query - strQueryString="SELECT * FROM CPST where dt >= #" & strFromDate & "# AND dt <= #" & strToDate & "#"
i want to enter data in UK('dd/mm/yy') format and these dates should compare with access database dates whose are in US date format and i want to get records for the specified period and display the date in UK format. since ms access takes date in the US format('mm/dd/yyyy') normally. im not able to get records and display date in UK format in my report. i think u can understand my problem and give the solution. if u dont understand i will explain again.
plz remember - user must enter in 'dd/mm/yy' format only not even in 'dd/mm/yyyy' and store in the table with same format 'dd/mm/yy'. later when i search for records with query i wll get records in display as dd/mm/yy format
kishore
my actual task is - select records from a table(CPST) between two dates which the user must dates in the format UK('dd/mm/yy'). user will enter dates FromDate and ToDate in Form1.asp. then i carry those two fields with request.form and store in two strings as strFromDate and strToDate.
then i used query - strQueryString="SELECT * FROM CPST where dt >= #" & strFromDate & "# AND dt <= #" & strToDate & "#"
i want to enter data in UK('dd/mm/yy') format and these dates should compare with access database dates whose are in US date format and i want to get records for the specified period and display the date in UK format. since ms access takes date in the US format('mm/dd/yyyy') normally. im not able to get records and display date in UK format in my report. i think u can understand my problem and give the solution. if u dont understand i will explain again.
plz remember - user must enter in 'dd/mm/yy' format only not even in 'dd/mm/yyyy' and store in the table with same format 'dd/mm/yy'. later when i search for records with query i wll get records in display as dd/mm/yy format
kishore