General information
Category:
Coding, syntax & commands
>James,
>
>If SET DATE SHORT the DTOC(DateField) gives 7/2/00. If SET DATE LONG, DTOC(DateField) Saturday, July 01, 2000. What I need (and had with VFP5) is 07/01/2000. I have a LOT of legacy code that grabs the year by using SUBSTR(DTOC(DateField),7,4).
Why not use the year function: STR(YEAR(DateField))
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only