I want to replace time from field date(java.util.date) by the another value string and finally store the result in field with type date ,below my code
var dtDate = getComponent("RemindDatePS").getValue();
var dtTime = getComponent("RemindTimePS").getValue();
if (dtDate != null && dtTime != null) {
var dtDateTime:NotesDateTime = session.createDateTime(dtDate);
dtDateTime.setLocalTime(dtTime );
Using Java:
The code assumes that there will always be a space followed by 00:00 in the date string. AFAIK the date format should handle the concatenated string correctly (it ignores the 00:00). You might also use some function like @Left() to remove the time from dtDate and then concatenate that with the real time in dtTime.