Subject Re: date settings
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 1 Jan 2021 10:04:05 -0800
Newsgroups dbase.getting-started

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