Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ValuesManager setValue on a Date type

    There's no ValuesManager.setValue(String property, Date value) so I was wondering what's the right way to call setValue() to set a DataSource field that has a Date type (not sure if it matters but it also includes a time)?

    I tried converting the date to a String and a DataClass but those didn't work for me. Any help would be appreciated. Thanks!

    #2
    This has now been added - check the next nightly build
    Thanks
    Isomorphic Software

    Comment


      #3
      Awesome! Thanks for the quick reply and solution. However, would it be easy for me to extend the ValuesManager class to include this method without getting the nightly build because we're not allowed to use new versions for security reasons :(

      Comment


        #4
        Got the source from the nightly build and it works! Thanks!

        Just in case anyone was wondering, I passed a Date object that contained a time into a data source type of "date" and it parsed only the date without the time. I had to change it to "datetime" in the data source for it to take the time.

        Comment

        Working...
        X