VOOZH about

URL: https://www.geeksforgeeks.org/r-language/determine-the-weekday-on-a-specific-date-in-r-programming-weekdays-function/

⇱ Determine the Weekday on a Specific Date in R Programming - weekdays() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Determine the Weekday on a Specific Date in R Programming - weekdays() Function

Last Updated : 15 Jul, 2025
weekdays() function in R Language is used to determine the weekday on a specific date passed to it as argument.
Syntax: weekdays(date, abbreviate) Parameters: date: Date to be checked abbreviate: Boolean value to abbreviate weekday
Example 1: Output:
[1] "2020-06-23 UTC"
[1] "Tuesday"
Example 2: Output:
[1] "1994-06-17 UTC"
[1] "Fri"
Comment
Article Tags:

Explore