All I can see in the documentation is DateTime.now()
but it returns the Timespan also, and I need just the date.
Create a new date from now
with only the parts you need:
DateTime now = new DateTime.now(); DateTime date = new DateTime(now.year, now.month, now.day);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With