I am trying to display the current DateTime in a Text widget after tapping on a button. The following works, but I\'d like to change the format.
DateTime
Text
there is some change since the 0.16 so here how i did,
import in the pubspec.yaml
dependencies: flutter: sdk: flutter intl: ^0.16.1
then use
txdate= DateTime.now() DateFormat.yMMMd().format(txdate)