This is for a custody calendar which shows who has the kids and when. There is a situation revolving around several holidays that happen on x Monday of every year. The custody terms give a parent time on that Monday as well as the Sunday before. For example, MLK day is celebrated on the third Monday of January every year. Since it's possible for January to begin on a Monday, I can not begin the calendar event on the third Sunday as it will displace the event by a week.
Is there a way to trigger the event on the third Monday but include the Sunday before within the ICS file?
I'm not sure where to begin here. I have not been able to find anything relevant while searching for a solution.
We are developing booking software, and the situation is as follows:
There are 2 room pricings dependent on different dates. Each room has separate pricing for weekdays and weekends.
ROOM 1
Pricing 1: 1st sept - 3rd Nov, Weekday: $100, Weekend: $120
Pricing 2: 4th Nov - 29 Dec. Weekday: $110, Weekend: $130
Pricing 3: 30th Dec - 20 Jan, Weekday: $100, Weekend: $115
Now there is a booking Checkin Checkout date.
For example: Checkin: 1st Nov, Checkout: 10th Nov
Now the answers should be something like:
First System automatically pick the slots or ranges it comes in
Calculate the days coming in that specific range, for example how many weekdays and weekends?
Then multiply those weekdays and weekends with the particular pricing they have.
And in result we achieved a List with Weekday and Weekend Rates as a list to show in HTML SELECT on client end.
This can be done in SQL Stored Procedure or ASP.NET CORE C#, help me to get this resolve. I tried a lot of methods but failed. Need assistance from the experts here.
I am working on a redesign and we would like to validate this by comparing the old design's data to the new design's data. The new design will be used from april 2018. From that moment will we start collecting data through Google Analytics to see if we improved.
What I find difficult is to which date range should I compare this data. Should I compare it to April 2017 (one year ago) or March 2018 (one month ago) or something else?
I think this is a bit easy to answer as you can compare your data with last month March 2018, Also you can wait till 3 months and set the comparison with last 3 months to see any improvement. No need to compare with April 2017 as there might be so many up and down between year.
OK here is a hardcore question that me and my friend are debating the proper programming solution for.
Let's say I'm running a business in New York at time UTC-4.
My sales rep based in San Francisco, whose time is 11:00 PM on December 31st, 2013 (which is 1:00 AM, January 1st, 2014 in my time) makes a sale that nets the company $1,000,000 USD. He enters the sale in the system as happening on December 31st, 2013, but really, in my time, it happens on January 1st, 2014.
For my 2013 report, do I include the $1,000,000 USD as profit, or does that go in my 2014 report?
A related question to hone in on the problem... how do most companies calculate daily sales for December 31st? Is it the last 24 hours from midnight in the company's HQ timezone, or is it for December 31st from each of it's market's time zones aggregated?
Further, if you only have the date (YYYY-MM-DD) entered for a sale, how should that be converted stored in UTC, being that a UTC day spreads over two unique dates?
Here's a helpful tool I've used to analyze this question:
http://everytimezone.com/#2013-8-27,-420,6bj
From a practical perspective:
It probably wouldn't matter which business day you recorded the sale. Many business end their days early, not necessarily at the stroke of midnight.
Some businesses might use the time zone of their headquarters, and some might use the time of the location where the sale was made. Either approach might be valid.
Of course, if this is an actual concern then you should ask an accountant or tax attorney. The answer may be different depending on your industry, state, or country.
As far as the technical parts to your question:
A date without a time or time zone is just a date. Think of it as a logical position on a calendar - not as a unique moment of instantaneous time.
Without additional context, you can't convert it to UTC. Or any other time zone for that matter.
Since UTC is a timekeeping system and not a time zone, then technically there is no such thing as a UTC day, but that is just semantics. Still, the idea of a "UTC day" would still only cover one calendar "date" - since that is part of the definition of what a "date" is.
It's just that the "UTC day" doesn't align with a "New York day". Just like a "New York day" doesn't align perfectly with a "Los Angeles day".
To blow your mind even more, consider that not every local day is 24 hours. Due to daylight saving time transitions, a "day" might by 23, 23.5, 24 24.5, or 25 hours long. Of course most are "standard days" - which are exactly 24 hours.
If you can keep separate that local time is a position on a calendar, while instantaneous time is universal, then you will find that it all makes sense.
That site you referenced has a nice visualization, and I reference it a lot. But IMHO it should have a different name because it doesn't cover every time zone. Use it carefully. See the IANA database discussed the timezone tag wiki, which has over 500 zones.
I don't know what language or database you are using, but you may find the concepts I described recently in this post on working with Date and Time in RavenDB useful. Specifically, read the section titled "Time Zone Conversions". Even if you use some other technology, the same concepts will apply.
I am implementing a business requirement for boats booking, each booking is a period (from datetime : to datetime).
So, I'm looking for a control to implement the following functions:
Disable booked periods so user be aware of booked periods, hence user cannot selects them.
e.g. We have the following booked periods
BoatName From To
Boat 1 01-01-2011 10:00 AM 01-01-2011 12:00 AM
Boat 1 02-01-2011 09:00 AM 04-01-2011 09:00 AM
Based on above booking details, all dates and times should be available except the following
01-01-2011 as a day should be available but times from 10:00 AM to 12:00 shouldn't be available.
02-01-2011 as a day should be available but times from 09:00 AM to 11:59 PM shouldn't be available.
03-01-2011 the whole day and time shouldn't be available because the whole days is booked.
04-01-2011 as a day should be available, but times from 12:00 AM to 09:00 AM shouln't be available.
So, is there a control that can implement that functionality?
Or, if I'm going to use ASP.NET Calendar Control or Telerik Calendar Control, how to implement such functionality?
I suppose you can do that with the telerik calendar using coding as in these demos:
http://demos.telerik.com/aspnet-ajax/carrental/default.aspx
http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultcs.aspx
You may also take a peek at other live demos for picker validation they have or projects in their code library.