i would like some help on this i actually use TZDateTime and also with specific location now i would to remove the end of the result like .123436 100 from it
final dateTime = TZDateTime.now(getLocation(box.read(timezone)));
the result always i get is something like this
2022-04-20 17:42:05.032173 1000
but i want is only like this
2022-04-20 17:42:05
how can i remove that actually
CodePudding user response:
I haven't used TZDateTime
before but I think it's the same as DateTime
. By using DateFormat
from