Open flxcn opened 4 years ago
This link may be useful: https://stackoverflow.com/questions/25168588/converting-a-date-number-string-to-word-of-day-php#2
Implemented this feature through the formatDate()
and formatEventStartToEnd()
functions in SponsorEventReader.php class, for Sponsor view of events only, in these two commits:
f73fff8350be1c817e73e7b65af48a04cbd5952c 095747dd0f0fdb10c9eb64670d526893220ba0e7
Please refer back to these when implementing this improvement for other areas of the platform: Volunteer view, individual volunteer's past engagements, opportunities, etc.
Currently, the dates displayed across the platform are all using the standard SQL date time format. However, it detracts from the user experience. Having it convert into either "Month Name, Date" format or "Day Name, Month Name, Date" would be preferable. This can be written as a method in the class or on the page itself.