Be sure that your "set date to" settings match your date format and use cmonth() to return the month as a word. you can then trim this to just the first 3 characters.
the other parts can be returned with day() and year() and turned into strings with str()
I am assuming that your date is stored as a date for these functions, if not you'll need to use ctod() on your date as a string to get it as a date format.
so this gets your strings for the current day:
str1 = left(cmonth(date()),3)
str2 = alltrim(str(day(date())))
str3 = alltrim(str(year(date())))
hope that helps.
Ken.
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