Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys,
How do i get to use DateTime where i want to add Days to it.
Basically i would like to add 2 days to my today date.
How can i make use of
DateTime today = DateTime.Now.ToShortDateString();DateTime comingDay = today.AddDays(2);
What do you want to use it for?
Your snippet is not quite right, it should be like this:
DateTime today = DateTime.Now; DateTime comingDay = today.AddDays(2);
Nevermind got it working
var today = DateTime.Now.ToShortDateString();var comingDay = DateTime.Now.AddDays(2).ToShortDateString();
Hi Jeavon,
Sorry i didnt see you reply before posting. But thanks for the tip.
Its only for a count down in js.
Np, glad it's working now!
Yep :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
DateTime
Hi Guys,
How do i get to use DateTime where i want to add Days to it.
Basically i would like to add 2 days to my today date.
How can i make use of
What do you want to use it for?
Your snippet is not quite right, it should be like this:
Nevermind got it working
Hi Jeavon,
Sorry i didnt see you reply before posting. But thanks for the tip.
Its only for a count down in js.
Np, glad it's working now!
Yep :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.