StringFormat of Datetime object in binding gives back 0 for hour and minute
I create a Datetime object with Datetime.Now and I have this as a property of a class. When I bind this to a grid view: <GridViewColumn Header="Date" Width="120" DisplayMemberBinding="{Binding transaction_date1, StringFormat=HH:mm}" /> The result is always 00:00. When I debug the code I see that the hour, minute etc. properties of the Datetime object contain non-zero values. I think that the StringFormat in this case gets the hour and minute from the Date object within the Datetime object that has the correct dates but always has 12:00:00 AM as hour. Is there any way to go past it and display