MavrickStl
Programmer
Guys,
I am calculating no. of week using following code:
Dim iFirstDate, iCurrDate, iNoWeeks, iyear, imonth, iday,
iyear = year(date)
imonth = month(date)
iday = day(now)
iFirstDate = DateSerial(iyear,1,1)
iCurrDate = DateSerial(iyear,imonth,iday)
iNoWeeks = DateDiff("ww", iFirstDate, iCurrDate)
I have oracle DB backend. I am using a stored procedure to enter no. of week in the database. Oracle PL/SQL has following convention:
WW Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year.
W Week of month (1-5) where week 1 starts on the first day of the month and ends on the seventh.
IW Week of year (1-52 or 1-53) based on the ISO standard.
How can I synchronize week number generated by my ASP code and week number generated by my oracle stored procedure?
Let's assume that I am starting with year 2005.
Thanks,
Mav
I am calculating no. of week using following code:
Dim iFirstDate, iCurrDate, iNoWeeks, iyear, imonth, iday,
iyear = year(date)
imonth = month(date)
iday = day(now)
iFirstDate = DateSerial(iyear,1,1)
iCurrDate = DateSerial(iyear,imonth,iday)
iNoWeeks = DateDiff("ww", iFirstDate, iCurrDate)
I have oracle DB backend. I am using a stored procedure to enter no. of week in the database. Oracle PL/SQL has following convention:
WW Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year.
W Week of month (1-5) where week 1 starts on the first day of the month and ends on the seventh.
IW Week of year (1-52 or 1-53) based on the ISO standard.
How can I synchronize week number generated by my ASP code and week number generated by my oracle stored procedure?
Let's assume that I am starting with year 2005.
Thanks,
Mav