I have this nearly working however i want to change date from dd\mm\yyyy to dd\mmm\yyyy
the bit that dosnt work is if the day is a single number then it shows d\mmm\yyyy i want to add 0 to meet format dd\mmm\yyyy
any help thanx
CODE SO FAR
________________________________________________________
FUNCTION ConvertDate
PARAMETERS dob
LOCAL d,m,y
d = DAY(dob)
m = CMONTH(dob)
m = SUBSTR(m,1,3)
y = YEAR(dob)
messagebox (ALLTRIM(STR(d))+"/"+ALLTRIM(m)+"/"+ALLTRIM(STR
))
the bit that dosnt work is if the day is a single number then it shows d\mmm\yyyy i want to add 0 to meet format dd\mmm\yyyy
any help thanx
CODE SO FAR
________________________________________________________
FUNCTION ConvertDate
PARAMETERS dob
LOCAL d,m,y
d = DAY(dob)
m = CMONTH(dob)
m = SUBSTR(m,1,3)
y = YEAR(dob)
messagebox (ALLTRIM(STR(d))+"/"+ALLTRIM(m)+"/"+ALLTRIM(STR