FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #1 Hello guys, I'm testing the code listed here and I still can't get dates before 1970. I read thru the thread and it seems it was fixed already. Which is the most recent code? The attached files don't indicate the version level. Regards, Fernando
Hello guys, I'm testing the code listed here and I still can't get dates before 1970. I read thru the thread and it seems it was fixed already. Which is the most recent code? The attached files don't indicate the version level. Regards, Fernando
Johan Hormaza Well-Known Member Licensed User Longtime User May 21, 2018 #2 This Attachments AnotherDatePicker (1).bas AnotherDatePicker (1).bas 10.7 KB · Views: 733 Upvote 0
stevel05 Expert Licensed User Longtime User May 21, 2018 #3 They should all be the latest version. A separate download for the demos for each OS and the .bas module file it you only want to download that and not the demo. Upvote 0
They should all be the latest version. A separate download for the demos for each OS and the .bas module file it you only want to download that and not the demo.
FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #4 stevel05 said: They should all be the latest version. A separate download for the demos for each OS and the .bas module file it you only want to download that and not the demo. Click to expand... No, it is not. I downloaded it again and it is limited to 1970. Also, there is the following line at the top: Code: 'xAnotherDatePicker v1.00 So, does anybody know where is the version 1.03 code? @Erel Regards, Fernando Upvote 0
stevel05 said: They should all be the latest version. A separate download for the demos for each OS and the .bas module file it you only want to download that and not the demo. Click to expand... No, it is not. I downloaded it again and it is limited to 1970. Also, there is the following line at the top: Code: 'xAnotherDatePicker v1.00 So, does anybody know where is the version 1.03 code? @Erel Regards, Fernando
FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #5 Johan Hormaza said: This Click to expand... Ok, now I am using the 1.03 code, but it is still limited to 1970... @Erel Changed line below from 1970 to 1900 with no visible effect. Code: #DesignerProperty: Key: MinYear, DisplayName: Minimum Year, FieldType: Int, DefaultValue: 1900, MinRange: 0, MaxRange: 3000 I'm 56 yo... may be this code doesn't apply to me... *lol* Upvote 0
Johan Hormaza said: This Click to expand... Ok, now I am using the 1.03 code, but it is still limited to 1970... @Erel Changed line below from 1970 to 1900 with no visible effect. Code: #DesignerProperty: Key: MinYear, DisplayName: Minimum Year, FieldType: Int, DefaultValue: 1900, MinRange: 0, MaxRange: 3000 I'm 56 yo... may be this code doesn't apply to me... *lol*
stevel05 Expert Licensed User Longtime User May 21, 2018 #6 You need to change the Minimum Year field in the designer for the layout that contains the AnotherDatePicker Custom View. Layout 1 in the case of the B4j example. Upvote 0
You need to change the Minimum Year field in the designer for the layout that contains the AnotherDatePicker Custom View. Layout 1 in the case of the B4j example.
FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #7 stevel05 said: You need to change the Minimum Year field in the designer for the layout that contains the AnotherDatePicker Custom View. Layout 1 in the case of the B4j example. Click to expand... Thanx, Steve I got this layout 1, but could not realize where is this 1970 information stored so I can change it. Doesn't seem to be a property of button btnYearLeft. Do you know? Upvote 0
stevel05 said: You need to change the Minimum Year field in the designer for the layout that contains the AnotherDatePicker Custom View. Layout 1 in the case of the B4j example. Click to expand... Thanx, Steve I got this layout 1, but could not realize where is this 1970 information stored so I can change it. Doesn't seem to be a property of button btnYearLeft. Do you know?
FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #9 stevel05 said: View attachment 68152 Yes it's here: Click to expand... Waw!!! I was looking on the wrong place. Thanx a lot, Steve. Upvote 0
stevel05 said: View attachment 68152 Yes it's here: Click to expand... Waw!!! I was looking on the wrong place. Thanx a lot, Steve.
FERNANDO SILVEIRA Active Member Licensed User May 21, 2018 #10 stevel05 said: View attachment 68152 Yes it's here: Click to expand... One last thing, do you know where I adjust date format from mm/dd/yyyy to dd/mm/yyyy? Upvote 0
stevel05 said: View attachment 68152 Yes it's here: Click to expand... One last thing, do you know where I adjust date format from mm/dd/yyyy to dd/mm/yyyy?
stevel05 Expert Licensed User Longtime User May 21, 2018 #11 Add this line to the AnotherDatePicker Initialize Sub: Code: DateTime.DateFormat = "dd/MM/yyyy" You will also need to change the line in AppStart to: Code: AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") As the format change is for the whole App. Upvote 0
Add this line to the AnotherDatePicker Initialize Sub: Code: DateTime.DateFormat = "dd/MM/yyyy" You will also need to change the line in AppStart to: Code: AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") As the format change is for the whole App.
FERNANDO SILVEIRA Active Member Licensed User May 22, 2018 #12 stevel05 said: Add this line to the AnotherDatePicker Initialize Sub: Code: DateTime.DateFormat = "dd/MM/yyyy" You will also need to change the line in AppStart to: Code: AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") As the format change is for the whole App. Click to expand... Ok, that's it. Thank you. Upvote 0
stevel05 said: Add this line to the AnotherDatePicker Initialize Sub: Code: DateTime.DateFormat = "dd/MM/yyyy" You will also need to change the line in AppStart to: Code: AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") As the format change is for the whole App. Click to expand... Ok, that's it. Thank you.
stevel05 Expert Licensed User Longtime User May 22, 2018 #13 Thinking about it, it would probably be better to change the format in the Main.AppStart sub (before the AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") line), then there are not changes to the AnotherDatePicker Module. Upvote 0
Thinking about it, it would probably be better to change the format in the Main.AppStart sub (before the AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") line), then there are not changes to the AnotherDatePicker Module.
FERNANDO SILVEIRA Active Member Licensed User May 22, 2018 #14 stevel05 said: Thinking about it, it would probably be better to change the format in the Main.AppStart sub (before the AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") line), then there are not changes to the AnotherDatePicker Module. Click to expand... Yeah, that's what I did. Upvote 0
stevel05 said: Thinking about it, it would probably be better to change the format in the Main.AppStart sub (before the AnotherDatePicker1.Date = DateTime.DateParse("23/02/2007") line), then there are not changes to the AnotherDatePicker Module. Click to expand... Yeah, that's what I did.
Erel B4X founder Staff member Licensed User Longtime User May 22, 2018 #15 I'm sorry but I don't understand this thread. As you can see in the screenshot you posted: Latest version is attached separately. This means that the latest version is the attached module file (the file that ends with .bas). FERNANDO SILVEIRA said: The attached files don't indicate the version level. Click to expand... You can see the version in a comment on the first line of the class. Upvote 0
I'm sorry but I don't understand this thread. As you can see in the screenshot you posted: Latest version is attached separately. This means that the latest version is the attached module file (the file that ends with .bas). FERNANDO SILVEIRA said: The attached files don't indicate the version level. Click to expand... You can see the version in a comment on the first line of the class.