Help! on concatenation
-
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...
-
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...
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().