Massy Member Licensed User Longtime User Sep 4, 2014 #1 Hello, I'm having this kind of problem with AnotherDatePicker: first time a user use it and choose a date with 0 (zero) in the date... something like 9 september 2014 the ADP shows this value: 09/09/2014.... but the second time a user use it and choose the same... or another date with 0 (zeros) the ADP shows this value: 9/9/2014... This is a big problem for me as I get the string char by char and this makes me have numbers with / because first time I get char 1 and 2 I get "09" but second time i get 1 and 2 I get 9/... Anyone can help with this issue? Thanks a lot Massy
Hello, I'm having this kind of problem with AnotherDatePicker: first time a user use it and choose a date with 0 (zero) in the date... something like 9 september 2014 the ADP shows this value: 09/09/2014.... but the second time a user use it and choose the same... or another date with 0 (zeros) the ADP shows this value: 9/9/2014... This is a big problem for me as I get the string char by char and this makes me have numbers with / because first time I get char 1 and 2 I get "09" but second time i get 1 and 2 I get 9/... Anyone can help with this issue? Thanks a lot Massy
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2014 #2 Note that you don't need to manually parse the date string. Are you changing DateTime.DateFormat somewhere in your code? Upvote 0
Note that you don't need to manually parse the date string. Are you changing DateTime.DateFormat somewhere in your code?
Massy Member Licensed User Longtime User Sep 4, 2014 #3 Erel said: Note that you don't need to manually parse the date string. Are you changing DateTime.DateFormat somewhere in your code? Click to expand... Hi Erel, no I'm not... how do I get day value month value and year value separated after the user choosed a date? I just need these 3 values separated Upvote 0
Erel said: Note that you don't need to manually parse the date string. Are you changing DateTime.DateFormat somewhere in your code? Click to expand... Hi Erel, no I'm not... how do I get day value month value and year value separated after the user choosed a date? I just need these 3 values separated
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2014 #4 Code: Sub ADP_Closed (Cancelled As Boolean, Date As Long) Dim year As Int = DateTime.GetYear(Date) Dim month As Int = DateTime.GetMonth(Date) Dim day As Int = DateTime.GetDayOfMonth(Date) End Sub Upvote 0
Code: Sub ADP_Closed (Cancelled As Boolean, Date As Long) Dim year As Int = DateTime.GetYear(Date) Dim month As Int = DateTime.GetMonth(Date) Dim day As Int = DateTime.GetDayOfMonth(Date) End Sub
Massy Member Licensed User Longtime User Sep 4, 2014 #5 Erel said: Code: Sub ADP_Closed (Cancelled As Boolean, Date As Long) Dim year As Int = DateTime.GetYear(Date) Dim month As Int = DateTime.GetMonth(Date) Dim day As Int = DateTime.GetDayOfMonth(Date) End Sub Click to expand... Thanks a lot Erel! Upvote 0
Erel said: Code: Sub ADP_Closed (Cancelled As Boolean, Date As Long) Dim year As Int = DateTime.GetYear(Date) Dim month As Int = DateTime.GetMonth(Date) Dim day As Int = DateTime.GetDayOfMonth(Date) End Sub Click to expand... Thanks a lot Erel!