Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Help! on concatenation

Help! on concatenation

Scheduled Pinned Locked Moved Java
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hellboy_83
    wrote on last edited by
    #1

    How do i concatenate this 2 lines of code: dtProgramada.getValue() dthoraProgramada.getValue() And later add them as parameters on this method of type Date: aux.setDataProgramada(); dtProgramada it's a Datebox and dthoraProgramada it's a Time box (ZK framework), public Date getDataProgramada() { return dataProgramada; } public void setDataProgramada(Date dataProgramada) { this.dataProgramada = dataProgramada; } Please advise...

    D 1 Reply Last reply
    0
    • H hellboy_83

      How do i concatenate this 2 lines of code: dtProgramada.getValue() dthoraProgramada.getValue() And later add them as parameters on this method of type Date: aux.setDataProgramada(); dtProgramada it's a Datebox and dthoraProgramada it's a Time box (ZK framework), public Date getDataProgramada() { return dataProgramada; } public void setDataProgramada(Date dataProgramada) { this.dataProgramada = dataProgramada; } Please advise...

      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #2

      I don't know ZK, so I am making some assumptions here, there may be an easier way built into ZK. Assuming that you want to take a Date (from the Datebox) and set its time part (from the Time box) and get a Date back as a result, you should use java.util.Calendar. Exactly how you do that depends on what the ZK components return from getValue().

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups