Gr 12 – Date/time format

There are times when you need to present a stored value in a different format . . .  Real number example –  8.987578. Here you may prefer to say 8.99 Date example – “2018-1-1”. Here you may prefer to say “1 January 2018” Java has a...

Gr 11 – Date and time

We can use String for simple date-time tasks ie 23/05/2021 – we can use String methods like substring to extract information like date, month and year. When we need the current data and time from the system clock, or we need to do date/time arithmetic, we need...