| Author |
Format of date() in developing and runtime
|
|
| evilaro 2005-08-10, 8:23 pm |
| To all:
I have a problem with finding a date...
And I have fount that while developing the aplication
date() will give me 10/08/2005
whereas in the installed aplication (provide that that is the setting in
regional options) it gives me 2005/08/10
Is this normal... ? it is the same computer at the same time.
Besides this ... I will have to find out what is the format of the date the
person is using... how can I get it.. is there a simple way ?
I mean if he i using dd/mm/yyyy or yyyy/mm/dd
Thank you
Emilio
| |
| Ken Mayer [dBVIPS] 2005-08-10, 8:23 pm |
| evilaro wrote:
> To all:
>
>
> I have a problem with finding a date...
>
> And I have fount that while developing the aplication
>
> date() will give me 10/08/2005
>
> whereas in the installed aplication (provide that that is the setting in
> regional options) it gives me 2005/08/10
>
> Is this normal... ? it is the same computer at the same time.
>
> Besides this ... I will have to find out what is the format of the date the
> person is using... how can I get it.. is there a simple way ?
> I mean if he i using dd/mm/yyyy or yyyy/mm/dd
Add some code that shows the setting of properties such as SET("DATE"):
msgbox( "Date format: "+set("date") )
And see what that shows ...
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| evilaro 2005-08-11, 3:24 am |
| Ken:
Yes, great the msgbox( "Date format: "+set("date") )
give me the dbase setting of the format
But how can I cahge it programatically
Like
set dateformat='YMD'
I CAN NOT FIND IT.
Thanks
Emilio
the[color=darkred]
>
> Add some code that shows the setting of properties such as SET("DATE"):
>
> msgbox( "Date format: "+set("date") )
>
> And see what that shows ...
>
> Ken
| |
| Ivar B. Jessen 2005-08-11, 3:24 am |
| On Thu, 11 Aug 2005 09:26:45 +0200, "evilaro" <buzon@evil.es> wrote:
>Yes, great the msgbox( "Date format: "+set("date") )
>give me the dbase setting of the format
>
>But how can I cahge it programatically
>
>Like
>
>set dateformat='YMD'
>
>I CAN NOT FIND IT.
>
In the command pane type the following,
HELP SET DATE
and then read the help file :-)
Ivar B. Jessen
| |
| evilaro 2005-08-11, 7:23 am |
| Ivar:
Yes... thanks... grrrrrrrrrrr
Emilio
"Ivar B. Jessen" <bergishagen@it.notthis.dk> escribió en el mensaje
news:t40mf15m6a6mak7
89qbt6io74k6k4qgs8j@
4ax.com...
> On Thu, 11 Aug 2005 09:26:45 +0200, "evilaro" <buzon@evil.es> wrote:
>
>
>
> In the command pane type the following,
>
> HELP SET DATE
>
> and then read the help file :-)
>
>
> Ivar B. Jessen
| |
| Ken Mayer [dBVIPS] 2005-08-11, 1:24 pm |
| evilaro wrote:
> Ken:
>
> Yes, great the msgbox( "Date format: "+set("date") )
> give me the dbase setting of the format
>
> But how can I cahge it programatically
>
> Like
>
> set dateformat='YMD'
>
> I CAN NOT FIND IT.
SET DATE TO ...
It's in the online help.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| evilaro 2005-08-11, 1:24 pm |
| Ken:
Dont you feel you are really been abused to
have to tell this Bl**dy spaniard
SET DATE TO
Thanks a lot
I really could not find it.
Emilio
"Ken Mayer [dBVIPS]" < dbase@_nospam_golden
stag.net> escribió en el mensaje
news:mOEm8HnnFHA.320@news-server...
> evilaro wrote:
>
> SET DATE TO ...
>
> It's in the online help.
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
| |
| Ken Mayer [dBVIPS] 2005-08-11, 8:23 pm |
| evilaro wrote:
> Ken:
>
> Dont you feel you are really been abused to
> have to tell this Bl**dy spaniard
>
> SET DATE TO
>
> Thanks a lot
>
> I really could not find it.
>
There are days when it happens to all of us, I am sure. Not a problem,
bloody spaniard or not. <gg>
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Bob Buchanan 2005-08-12, 8:23 pm |
| Evilaro:
FYI, in my OE, your original message is dated 10/10/05 vs. 8/10/05. Your
responses after that are dated correctly.
Regards, Bob
RLB & Associates
dB2K 0.2 b1623
www.rvspacemanager.com
"evilaro" <buzon@evil.es> wrote in message
news:UaA2bSenFHA.1812@news-server...
> To all:
>
>
> I have a problem with finding a date...
>
> And I have fount that while developing the aplication
>
> date() will give me 10/08/2005
>
> whereas in the installed aplication (provide that that is the setting in
> regional options) it gives me 2005/08/10
>
> Is this normal... ? it is the same computer at the same time.
>
> Besides this ... I will have to find out what is the format of the date
> the
> person is using... how can I get it.. is there a simple way ?
> I mean if he i using dd/mm/yyyy or yyyy/mm/dd
>
>
> Thank you
>
> Emilio
>
>
>
>
>
| |
| *Lysander* 2005-08-20, 11:23 am |
| In article <ytq7j5lnFHA.432@news-server>, buzon@evil.es says...
>=20
> Yes... thanks... grrrrrrrrrrr
This is not a lean solution for your actual problem.
You should not be locating for date-type data by comparing them=20
characterwise.
If you would search for a date instead of for a date-literal then you=20
would exclude problems also in the future. And then you would never have=20
to care again about the settings on each computer.
ciao,
Andr=E9
| |
|
| HI,
This might have a lot to do with set date setting
In the beginning of your application issue a command to set the date to the
correct display
like set date to dmy.
Alternatively in the apps ini file set the correct date there
& #91;CommandSettings]
DATE=DMY
Look at the OLH for various set date values
Robert
"evilaro" <buzon@evil.es> wrote in message
news:UaA2bSenFHA.1812@news-server...
> To all:
>
>
> I have a problem with finding a date...
>
> And I have fount that while developing the aplication
>
> date() will give me 10/08/2005
>
> whereas in the installed aplication (provide that that is the setting in
> regional options) it gives me 2005/08/10
>
> Is this normal... ? it is the same computer at the same time.
>
> Besides this ... I will have to find out what is the format of the date
the
> person is using... how can I get it.. is there a simple way ?
> I mean if he i using dd/mm/yyyy or yyyy/mm/dd
>
>
> Thank you
>
> Emilio
>
>
>
>
>
|
|
|
|