J junaidahmed Well-Known Member Licensed User Longtime User Aug 17, 2013 #1 How to get yesterday date.pls advise.
mangojack Expert Licensed User Longtime User Aug 17, 2013 #2 Use this .. B4X: Dim Yesterday As Long Yesterday = DateTime.add(DateTime.Now, 0, 0, -1) DateTime.DateFormat = "dd MM yyyy" Log (DateTime.Date(Yesterday)) also maybe read here ... [URL=http://www.b4x.com/android/forum/threads/adding-days-to-a-date-and-geting-the-result.29463/#post-170930]Adding Days to a Date [/URL] Cheers mj Upvote 1
Use this .. B4X: Dim Yesterday As Long Yesterday = DateTime.add(DateTime.Now, 0, 0, -1) DateTime.DateFormat = "dd MM yyyy" Log (DateTime.Date(Yesterday)) also maybe read here ... [URL=http://www.b4x.com/android/forum/threads/adding-days-to-a-date-and-geting-the-result.29463/#post-170930]Adding Days to a Date [/URL] Cheers mj
bsnqt Active Member Licensed User Longtime User Aug 17, 2013 #3 Very similar and worth to read too: http://www.b4x.com/android/forum/threads/calculate-next-day-of-a-datetime-string.31794/#post-185416 Upvote 0
Very similar and worth to read too: http://www.b4x.com/android/forum/threads/calculate-next-day-of-a-datetime-string.31794/#post-185416