Announcement

Collapse
No announcement yet.

Make DateTime

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Make DateTime

    Hi!

    I have a UI Widget which player selects his/her birth date. Day, month, year parts are different combo boxes. How can I construct a Date Time value from them. I tried "Break Date Time" and "Set Members in Date Time", but it does not do anything like other structs.

    Thanks!

    #2
    Originally posted by Bumbala View Post
    Hi!

    I have a UI Widget which player selects his/her birth date. Day, month, year parts are different combo boxes. How can I construct a Date Time value from them. I tried "Break Date Time" and "Set Members in Date Time", but it does not do anything like other structs.

    Thanks!
    A simple way would be to make an array of ints, the array would have 3 elements (Day, Month, & Year). Assign the elements to the corresponding values when the user inputs their DOB.
    Marketplace Assets

    Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
    Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
    Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

    Comment


      #3
      Weird FDateTime has a constructor as explained in this link: https://docs.unrealengine.com/latest...r/3/index.html
      I can pass the value as year, month, day, convert to string and convert to datetime while inserting to DB.
      But, I think it can be easily added to blueprint functionality. Up to Epic staff

      Comment

      Working...
      X