Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a date to the day of the week 3

Status
Not open for further replies.

jlp118

Programmer
Jul 23, 2001
28
US
I have a report that gives me everything I need. The date field I have, shows the date ie. 07/26/2001. How do I convert the date to instead of showing "07/26/2001" to show "Thursday"? Thank you in advance for your help.

Jeff
 


StringVar Array DaysOfWeek := ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];

DaysOfWeek[DayofWeek(DateField)]
 
You can also create a variable "Day of week" and use the formula:

ToText({date},"dddd")

where {date} is your current date field. This will return the correct day in the form "Thursday".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top