Description: Want to format date based on distance from current date
Is there an existing technique to dynamically format the date returned by the picker? e.g. one of the following
Today 12:34
Tues 12.34
Tues 1 Oct 12:34
I have a function (formatDate) which returns a suitable format and have tried:
Versions
Description: Want to format date based on distance from current date
Is there an existing technique to dynamically format the date returned by the picker? e.g. one of the following Today 12:34 Tues 12.34 Tues 1 Oct 12:34
I have a function (formatDate) which returns a suitable format and have tried:
The above initially displays the date correctly but the format doesn't change on return from the picker.