G
Guest
I am developing an app in C# on a PDA using SQL CE
It is to use British date format : dd/mm/yyyy
I am having problems with the comparison of dates between dates entered in the app and the database
I can format the dates in C# and then format dates using convert in SQL and compare the two.
However , I was wondering is it possible , when programmatically creating a database , to set the region and or date to British format.I would like to ensure that the default formatting for any date field is British
If it's not possible to set the format for the whole database is it possible to specify the format in a create table statement or to add some type of constraint to ensure the date is formatted correctly
Thanks
Den
It is to use British date format : dd/mm/yyyy
I am having problems with the comparison of dates between dates entered in the app and the database
I can format the dates in C# and then format dates using convert in SQL and compare the two.
However , I was wondering is it possible , when programmatically creating a database , to set the region and or date to British format.I would like to ensure that the default formatting for any date field is British
If it's not possible to set the format for the whole database is it possible to specify the format in a create table statement or to add some type of constraint to ensure the date is formatted correctly
Thanks
Den