M Makumbi Well-Known Member Licensed User Dec 22, 2018 #1 B4X: MaskedEditText2.Text = DateTime.Add(DateTime.Now,0,0,1) when i add one to todays date this brings this Number 15/45/5552 yet i wanted to display 23/12/2018 because todays date is 22/12/2018
B4X: MaskedEditText2.Text = DateTime.Add(DateTime.Now,0,0,1) when i add one to todays date this brings this Number 15/45/5552 yet i wanted to display 23/12/2018 because todays date is 22/12/2018
Computersmith64 Well-Known Member Licensed User Longtime User Dec 22, 2018 #2 Makumbi said: B4X: MaskedEditText2.Text = DateTime.Add(DateTime.Now,0,0,1) when i add one to todays date this brings this Number 15/45/5552 yet i wanted to display 23/12/2018 because todays date is 22/12/2018 Click to expand... Because .Add returns a long representing ticks. You you need to convert this to a string using .Date. These methods are all well documented. -Colin . Upvote 0
Makumbi said: B4X: MaskedEditText2.Text = DateTime.Add(DateTime.Now,0,0,1) when i add one to todays date this brings this Number 15/45/5552 yet i wanted to display 23/12/2018 because todays date is 22/12/2018 Click to expand... Because .Add returns a long representing ticks. You you need to convert this to a string using .Date. These methods are all well documented. -Colin .
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2018 #3 Watch this video tutorial: Upvote 0