or run a quick fudge on the format...CONVERT(VARCHAR(1
Main Topics
Browse All TopicsI recently migrated data to a new schema that I have developed and all date fileds are of data type DATE and when I tried to read the date field using ID Flow from www.jollytechnology.com to print ID cards it retrieves the date in a format dd/m/yyyy and all my date formats including the system date formate is dd/mm/yyyy. But if i retrieve date from the old database I get the format as dd/mm/yyyy.
All data types are of type DATE on both the old schema and new schema
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
or run a quick fudge on the format...CONVERT(VARCHAR(1
Well, more or less the same as above...
The way the underlying database handles dates is really just a magic number... The 'default' presentation of those magic numbers is dependant on both language and dateformat.
If returning data from the database, keep to the date data types where ever possible and that will overcome a lot of potential issues, but when you want to present that information for display, then best to use either date functions (such as day() month() etc) or explicitly manage using the convert function with the style code as in
convert(<resulting datatype>,<source data>,<style code>) which typically means converting dates to char (or varchar of nchar etc) for presentation.
The style codes really determine the way in which users will see the date. Have a look at : http://msdn.microsoft.com/
Also note that there are a few "default" date constructs that can always be implicitly converted without having to explicitly convert and can be a "handy" transport method for date data. Formats such as YYYYMMDD or YYYY-MM-DD are universally understood as a data construct (when used in a date context) and will always be understood in date functions e.g. select datepart(month,'20091101')
You can do a select * from syslanguages and look at the range of languages and their defaults. the Set dateformat command will override the language settings... and you can also set it up as part of the server configuration under default language in advanced settings. Most of this is determined when you install SQL Server and the codepage of that actual server where it was being installed....
Hope that helps a bit...
Business Accounts
Answer for Membership
by: aneeshattingalPosted on 2009-10-30 at 14:57:47ID: 25707084
seems like your default database language are different one usEnglish and the other british english , try running the below query on both of these dbs
select @@LANGUAGE