All I can see in the documentation is DateTime.now() but it returns the Timespan also, and I need just the date.
DateTime.now()
Create a new date from now with only the parts you need:
now
DateTime now = new DateTime.now(); DateTime date = new DateTime(now.year, now.month, now.day);
2.1m questions
2.1m answers
60 comments
57.0k users