- 0
[Javascript] Is British Summer Time in effect?
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Download HTML, CSS, & JavaScript All-in-One For Dummies ($39.99 Value, now FREE)
By News Staff,
- ebook offer
- sponsored
- (and 5 more)
- 0 replies
- 0 views
-
Microsoft is making TypeScript 10x faster for developers
By pradeepviswav,
- microsoft
- typescript
- (and 3 more)
- 4 replies
- 0 views
-
Microsoft introduces TypeScript 5.8: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 4 replies
- 0 views
-
- 8 replies
- 2 views
-
Microsoft launches TypeScript 5.6 with a number of new improvements
By John Callaham,
- microsoft
- javascript
- (and 2 more)
- 1 reply
- 2 views
-
Question
-Alex-
Hi all,
So I'm scratching my head here... British Summer Time runs from the last Sunday of March til the last Sunday of October. My JS-skills are not uber-fantastic.
I don't suppose any of you have a pre-written function (or feel like having a go at writing a function) to get the user's current date, check if it's between the 2 above dates, and return 0 or 1?
I'm struggling here, and it'd be a huge help if someone could point me to a relevant link or an even bigger help if somebody feels like writing a quick function for me!
Thanks guys! :)
Link to comment
https://www.neowin.net/forum/topic/1030589-javascript-is-british-summer-time-in-effect/Share on other sites
8 answers to this question
Recommended Posts