1 Reply Latest reply on Nov 20, 2008 2:14 PM by Newsgroup_User

    How can I get hour value of a datetype object in a datagrid?

    EvolvedDSM Level 2
      I have a datagrid connected to a data provider (a db table). One of the columns displays datetime values from my table. I'm looking for a way to grab the hour from the datetime object of the selectedItem in the datagrid. How do I reference this?

      For instance, I select a row in my datagrid that contains the date 11/20/2008 9:55 AM, I need a way to reference the hour value (9) so I can display it elsewhere in my app.