I have problem to implement that command
I have database expense and in that database I have table expenses and in that table is column expdate that i want convert.
Can you assist me with that
thanks
Main Topics
Browse All TopicsHi,
I use sql 2008 and delphi6. I retrieve data using ADOdataset and then display in DBGRID.
Problem is that data is in format yyyy-mm-dd and I want opposite dd-mm-yyyy.
I know you can change that using properties of dataset "displayformat" but I don't have this tab in properties. I have this option for other columns but no for that one.
Data type in dataset is TWideStringField.
Is there any way to change format date
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.
sorry didnt read properly...
Data type in dataset is TWideStringField ?
Why dont you change it to datetime ?
You will run into trouble sooner ol later....
Otherwise you will have to convert datetime into string
http://www.delphibasics.co
>>Sorry but I gave you points. It takes me really long time to sort that out. On internet is a lot of talking about that but nothing that really help no example for lamer like me<<
You should have awarded David the points here. http:#a25262509. See here how to change it (from the EE Guidelines):
<quote>
I accepted the wrong solution. What do I do?
Click the Request Attention button, and ask the Moderators to change the grade for you.
</quote>
Business Accounts
Answer for Membership
by: dtoddPosted on 2009-09-04 at 12:16:22ID: 25262509
Hi,
en-us/libr ary/ ms1879 28(SQL.90) .aspx
In SQL
convert( varchar( 10 ), datefield, 105 )
see
http://msdn.microsoft.com/
HTH
David
PS I normally prefer to do this in the presentation layer ...