I’d like to do this :
- Extract the current date;
- Parse it as DD/MM/YYYY;
- Add to it 7 days;
How can I do it on C#?
I hope there are specific methods for do it (without extraxt, split, arrange arrays, join, ecc…).
SOLUTION TAKEN
DateTime dt = DateTime.Parse(System.DateTime.Now.ToString());
txtArrivo.Text = dt.ToString("dd/MM/yyyy");
txtPartenza.Text = dt.AddDays(7).ToString("dd/MM/yyyy");
It is as simple as that:
No need to parse anything.