![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
STR_TO_DATE('201050 Monday', '%X%V %W') | +-----------------------------------------+ 2010-12-13 | +-----------------------------------------+ |
#3
| |||
| |||
|
|
SELECT STR_TO_DATE('201050 Monday', '%X%V %W'); +-----------------------------------------+ | STR_TO_DATE('201050 Monday', '%X%V %W') | +-----------------------------------------+ | 2010-12-13 | +-----------------------------------------+ yes, i missed this one. |

#4
| |||
| |||
|
|
hi all, I have 2 variables, varYEAR and varWEEK (ie: 2010 and 50) I'd like to know the days of this week (it starts on mondays). Or at least the first day of this week. 2010-12-13 2010-12-14 2010-12-15 2010-12-16 2010-12-17 2010-12-18 2010-12-19 It seems the mysql date and time functions only take date variables and no week number variable. any hint ? regards, f. |
![]() |
| Thread Tools | |
| Display Modes | |
| |