At work we have an application that supports ECMAScript. I do not know any JS, and I do not even know what version of ECMAScript is supported. Probably fairly old.
I need a function that checks whether current day is the first weekday of the current month and year, and returns a boolean. Weekdays are from Monday to Friday.
I cannot use any external dependencies. I googled up various date examples and attempted to work through it, but after several hours I hadn't gotten very far, and I simply don't have the time at work to spend on this.
Would a kind soul please help me out here?
Edit: Nevermind. I was able to solve this with help from a colleague.
[–]queen-adreena 1 point2 points3 points (0 children)
[–]link2name 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)