Thanks Benoit,
I will keep in good account your recommendations.
You and Jussi are really Kind
Regards
Gianluigi
2015-12-11 23:49 GMT+01:00 Benoît Minisini :
> Le 11/12/2015 23:22, Gianluigi a écrit :
> > Dear Benoit,
> > I apologize for my poor English.
> > I would like to get from the DateChose
Thanks Jussi,
finally! I never used the DateChooser and I made the mistake of trusting
Print.
Print DateChooser1.Value --> 11/12/2015 0:00:00 and was looking for a way
to get the only date.
In the TextBox DateChooser.Value is OK.
Now I understand your doubts.
Thanks again
Gianluigi
2015-12-11 23:4
Le 11/12/2015 23:22, Gianluigi a écrit :
> Dear Benoit,
> I apologize for my poor English.
> I would like to get from the DateChoser localized date.
> Example: If the code runs on a computer in Italy 25/12/2015 in USA
> 12/25/2015.
> Thank you
> Gianluigi
>
Don't confuse a date value and its strin
>
> Example: If the code runs on a computer in Italy 25/12/2015 in USA
> 12/25/2015.
>
Yes, that will happen automatically, unless you use non-localized functions
like CDate().
Jussi
--
__
Dear Benoit,
I apologize for my poor English.
I would like to get from the DateChoser localized date.
Example: If the code runs on a computer in Italy 25/12/2015 in USA
12/25/2015.
Thank you
Gianluigi
2015-12-11 20:28 GMT+01:00 Benoît Minisini :
> Le 11/12/2015 19:38, Gianluigi a écrit :
> > OK B
OK, so you mean this:
Print Now; " -> "; Date(Now)
--
05/16/2002 15:10:59 -> 05/16/2002
There was some reason for this change... documentation is not accurate in
this part.
Perhaps it's Print that converts date part to date&time format before
displaying it.
Jussi
Le 11/12/2015 19:38, Gianluigi a écrit :
> OK Benoit,
> I want to get exactly what you get from 1 to 12.
> How do I get over the whole month?
> I mean: If they are in Italy 52 – 25/12/2015 and if they are in the USA 52
> - 12/25/2015
>
> Regards
> Gianluigi
>
I don't understand what you want to ac
Oh I forgot, if property environment on LANG=C;LC_ALL=C my code work well ☺
Gianluigi
2015-12-11 19:38 GMT+01:00 Gianluigi :
> OK Benoit,
> I want to get exactly what you get from 1 to 12.
> How do I get over the whole month?
> I mean: If they are in Italy 52 – 25/12/2015 and if they are in the
If I use "Date" I give only the date and not hours, minutes and seconds
although it is written as zero.
It is the documentation that says so.
Regards
Gianluigi
2015-12-11 18:34 GMT+01:00 Jussi Lahtinen :
> Date() returns only date part. See Time().
>
>
> Jussi
>
> On Fri, Dec 11, 2015 at 5:53 PM
OK Benoit,
I want to get exactly what you get from 1 to 12.
How do I get over the whole month?
I mean: If they are in Italy 52 – 25/12/2015 and if they are in the USA 52
- 12/25/2015
Regards
Gianluigi
2015-12-11 17:00 GMT+01:00 Benoît Minisini :
> Le 11/12/2015 16:26, Gianluigi a écrit :
> > Why
Date() returns only date part. See Time().
Jussi
On Fri, Dec 11, 2015 at 5:53 PM, Gianluigi wrote:
> Another anomaly
> Print Now; " -> "; Date(Now)
> return
> 11/12/2015 16:47:16 -> 11/12/2015 00:00:00
> Regards
> Gianluigi
>
> [System]
> Gambas=3.8.3
> OperatingSystem=Linux
> Kernel=3.19.0-39
Le 11/12/2015 16:26, Gianluigi a écrit :
> Why this simple code works only between 1 and 12 of each month?
>
> Public Sub DateChooser1_Change()
>Dim d As Date, s As Integer, valore As String
>
>d = Date(DateChooser1.Value)
>valore = CString(d)
>s = Week(d)
>TextBox1.Text = s & "
Le 11/12/2015 16:53, Gianluigi a écrit :
> Another anomaly
> Print Now; " -> "; Date(Now)
> return
> 11/12/2015 16:47:16 -> 11/12/2015 00:00:00
> Regards
> Gianluigi
>
What's the anomaly?
--
Benoît Minisini
--
_
Another anomaly
Print Now; " -> "; Date(Now)
return
11/12/2015 16:47:16 -> 11/12/2015 00:00:00
Regards
Gianluigi
[System]
Gambas=3.8.3
OperatingSystem=Linux
Kernel=3.19.0-39-generic
Architecture=x86_64
Distribution=Ubuntu 14.04.3 LTS
Desktop=GNOME
Theme=Gtk
Language=it_IT.UTF-8
Memory=15976M
[Lib
Why this simple code works only between 1 and 12 of each month?
Public Sub DateChooser1_Change()
Dim d As Date, s As Integer, valore As String
d = Date(DateChooser1.Value)
valore = CString(d)
s = Week(d)
TextBox1.Text = s & " - " & CString(Val(valore))
End
Regards
Gianluigi
---
15 matches
Mail list logo