B4J Question AnotherDatePicker library is correct?

Theera

Well-Known Member
Licensed User
Longtime User
Today is Tuesday.But it show today is Monday. It's about locale() ,isn't it?
 

Attachments

  • 2020-04-28_205000.png
    2020-04-28_205000.png
    29 KB · Views: 249

Theera

Well-Known Member
Licensed User
Longtime User
It is a mistake not to use the latest version which is B4XDateTemplate + B4XDialog.

Why have you set the year to 2563 in the code?
I'm budhist . Thai people use B.E.Year (not use C.E.Year). MS Visual basic6.0 have this property for helping Thai delvelopler. I think B4A,B4J and B4i should be alike as VB6.0. B4A,B4Jand B4i should be easy tools for everyone ,not only for the programming experts.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
not only for the programming experts.
I dont think anyone of us consider ourselves as experts. We figure things out... Here inlies your challenage, with some help.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
I have just to know MS Windows in Thailand is not like others. Please see my pictures.
 

Attachments

  • 2020-04-29_101211.png
    2020-04-29_101211.png
    19.2 KB · Views: 230
  • 2020-04-29_100617.png
    2020-04-29_100617.png
    11.7 KB · Views: 237
  • Screenshot_20200429_102206_temp.jpg
    Screenshot_20200429_102206_temp.jpg
    84.3 KB · Views: 244
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Hi Erel,
Is there way to make a new function DateTime.DateParse("02/23/2007")? It see 2007 as C.E.Year. My windows see 2007 as B.E.Year ,and change 2007 to be 1464 automatic.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Correct me if I'm wrong, you need an ADP version (or better B4xDateTemplate) which shows 28.04.2563 as Tuesday and not Monday, right?
Internally it should "convert" between 2020 and 2563 or simply cheat, showing 2563 but "reasoning" using 2020 instead..
In other words, your special copy will read and manage 28.04.2020 but will show 28.04.2563; so for the input/output.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Correct me if I'm wrong, you need an ADP version (or better B4xDateTemplate) which shows 28.04.2563 as Tuesday and not Monday, right?
Internally it should "convert" between 2020 and 2563 or simply cheat, showing 2563 but "reasoning" using 2020 instead..
In other words, your special copy will read and manage 28.04.2020 but will show 28.04.2563; so for the input/output.
I see my problem. It's about region format in Windows OS setting. Is there DateTime.RegionFormat(B.E.Year/C.E.Year)?
 

Attachments

  • 2020-04-29_180428.png
    2020-04-29_180428.png
    175.1 KB · Views: 234
  • 2020-04-29_193508.png
    2020-04-29_193508.png
    191.9 KB · Views: 230
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
B4X are the best tools for less experienced developers!!!
I disagree. Even most experienced developers have made fantastic apps from it. :)
One just have to be patient.

Regards,

Anand
 
Upvote 0
Top