Last post Oct 08, 2010 02:03 PM by jrees
Oct 08, 2010 05:33 AM|jrees|LINK
I have some Date fields defined in my sqlserver database but these display with a time part as well (00:00:00).
how do i esnure that only the date part is displayed and not this redundant time?
Oct 08, 2010 01:41 PM|gerhardm|LINK
you can use the DisplayFormat attribute in the DynamicData MetaData Class. E.g. if your datetime property is 'CreatedOn' as DateTime, then you can use:
Public Property CreatedOn As DateTime
I hope this helps.
.NET Framework 4.0
Oct 08, 2010 02:03 PM|jrees|LINK
many thanks Gerhard
FYI i also added the "ApplyFormatInEditMode:=True" parameter to the above to ensure the edit form also displays the date in the same way