I have a table that has a date field in this format: 08032005. I need to get that field in this format: yyyymmdd. Can someone help please? Thanks in advance.
Maggie if you permenantly want all date fields to appear yyyymmdd then you can change the regional settings in control panel If however you only want this view or field in yr development you need to specify this in VFP's tools/options regional settings. If you want this to appear in this format in a field on a form then at class or object level you need to alter the property dateformat.
Just to clarify what the others have said, if the field is actually defined as a Date field, then internally, it is stored as YYYYMMDD. In that case, the issue is how you display it, which you can control globally or locally.
If you have a character field that holds a date, Eguy's answer is the way to go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.