Subject Re: date settings
From Mustansir Ghor <mustan31@hotmail.com>
Date Fri, 01 Jan 2021 13:50:43 -0500
Newsgroups dbase.getting-started

Dear Ken Sir

Very True.

But in Form for an entryfield I got diffrent.

Regards
Mustansir

Ken Mayer Wrote:

> On 1/1/2021 9:11 AM, Mustansir Ghor wrote:
> > Dear All
> >
> > I have an entryfield set to blank date and on form open i assign to
> > current date. In the onchange event it gave followings results (At form
> > open date is set to british)
> >
> > ?this.value
> > 01/01/20201
> >
> > set date to ymd
> >
> > ?this.value
> > 2006/07/14
> >
> > How or what is the conversion formula here.
>
> Not sure what you're doing, but in the command window I did:
>
> d={01/01/2021}
> ? d
> set date to ymd
> ? d
>
>
> And the results were:
>
> 01/01/2021
> 2021/01/01
>
> Which is exactly as expected.
>
> Ken
>
>
> --
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm