B4X FEED Getting day of week

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Getting day of week است. این موضوع تا کنون 29 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Getting day of week
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
29
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hello everybody,

I'm facing an issue regarding the way to get the day of week depending on Android version. I googled as I can do, but with no usefull result, may be my search is not in the right scope ...

For some personal reasons I use some very new and also some very old new-stock smartphones (at a very low price) for my home automation system, but the installed Android version is also old new-stock: 4.4.4 in the second case.

The problem is when I try to get the day of week with "DateTime.GetDayOfWeek(DateTime.Now)" depending of Andorid version I get a different value (one day shift ...).

I'm probably wrong somewhere (may be the SDK version), but if anyone could help me to fix or turnaround this issue it will be very appreciate

Try to have the most beautifful summer days all of you !

(My environment : very latest version of B4A and SDK 29)

 

عقب
بالا