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);
1.4m articles
1.4m replys
5 comments
57.0k users