I am trying to format the day\month of the date to include the "0" if it is less than 10. I thought that I might be able to use a simple function to do this in VFP, like FORMAT in VBA. It needs to be returned as a string.
I couldn't find a similar so I've had to use the PADL command to achieve this (see below). Just out of interest is there an equivalent of the VBA FORMAT command in VFP?
Mark Davies
Warwickshire County Council
I couldn't find a similar so I've had to use the PADL command to achieve this (see below). Just out of interest is there an equivalent of the VBA FORMAT command in VFP?
Code:
x = PADL(ALLTRIM(STR(MONTH(DATETIME()))),2,'0')
Mark Davies
Warwickshire County Council