on 03-24-2014 9:44 AM
I have a requirement regarding time like i need to compare two time datatype fields, like Start time and End time, End time should not be greater than Start Time. Also Lunch break field will be entered in mins. So, now I need to display in a field Working = Start-End-Lunch. How can I subtract Time from Time and also Compare in Webdynpro Java
Its more w.r.t. plain old Java.
Look up in Java to use the Date/Time classes to subtract the times.
Check this link for some clue into time subtraction in Java.
http://www.mkyong.com/java/how-to-calculate-date-time-difference-in-java/
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use the Calendar Instance object to subract times.
Check this link for your ref:
Add/Subtract Hours from Date with Calendar | Examples Java Code Geeks
Regards,
Sharath
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.