Fixed wyday

Uses as.Date instead of as.POSIXct, noticed some issues.