You need strptime("20030301","%Y%m%d")$wday See ?strptime ?POSIXlt Lutz > Putting it simly I have a date in format YYYYMMDD > Year month day > 20030301 > and I need simply the day of the week as an integer or even as > string...