Quality Testing

Quality is delighting customers

Hi Friends,

I need to get current number of week in to qtp. Whole year is divided in to 52 weeks.

Now, What will be the code to get current number of the week (i.e. As on today's date, it is 45)

I am counting week from Monday to Sunday.

Pls. let me know, if you need any more information to help me.

Best Regards,

Vishal Shah


Views: 532

Reply to This

Replies to This Discussion

I have done it. Pls. find below code for everyone's reference.

wof= datediff("ww","01/01/2011",date()-1)

it will return current week count of the year. 



TTWT Magazine





© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service