Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How under number of week in year to define date of day

Status
Not open for further replies.

wer25

Programmer
Jan 16, 2001
10
0
0
RU
How under number of week in one year to define(determine) date of Monday of this week?
Number of week I define(determine) so: to_char (dat, 'ww')
Thank
 
You do not need to calculate the week number.
trunc(dat, 'D') will return the first day of dat week (according to your nls-settings). If your week starts on Sunday, just add 1 to the result, if on Monday - leave it untouched.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top