| View previous topic :: View next topic |
| Author |
Message |
mday Novice
Joined: 19 Oct 2011 Posts: 4
|
Posted: Wed Oct 19, 2011 4:12 am Post subject: Time showing for date fields |
|
|
| Date fields are being formated to display the date and time when displaying the results and in the where clause. How do I get the dates to display only? |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 07 Nov 2005 Posts: 272
|
Posted: Mon Oct 31, 2011 3:35 pm Post subject: |
|
|
| Select "date" data type for your attribute in the model instead of "date/time" |
|
| Back to top |
|
 |
mday Novice
Joined: 19 Oct 2011 Posts: 4
|
Posted: Wed Nov 02, 2011 10:22 pm Post subject: |
|
|
| The fields in the database are of type "Date" but are being displayed in the results table with a time. The time being set to "00:00:00". Is there somewhere where I can format the display of these dates to not include the time and in a format of my choice instead of mm/dd/yyyy? It looks strange for some fields like 'dateOfBirth' to contain a time. The same date fields are being used in the where clause and show no times. |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 07 Nov 2005 Posts: 272
|
Posted: Wed Nov 09, 2011 1:29 pm Post subject: |
|
|
It happens because they have date/time type in your database.
I think there must be some properties in DataGrid component (or any other control you use to show the result of the query) which allows you to change the formats of the shown data. |
|
| Back to top |
|
 |
mday Novice
Joined: 19 Oct 2011 Posts: 4
|
Posted: Wed Nov 09, 2011 7:34 pm Post subject: |
|
|
| Thanks for your reply. I managed to format the dates for the grid control. |
|
| Back to top |
|
 |
|