All Questions
1,803
questions
0
votes
1
answer
34
views
Vue <Calendar> component convert date to another format yyyy/mm/dd
below is my <Calendar>:
<Calendar
v-model="value"
:date-format="props.dateFormat"
:view="props.view"
:input-class="props.inputClass"
...
0
votes
1
answer
36
views
How can I call an API when my calendar (input type date) is closed?
How can I ensure that my API is called only when a date is selected from the calendar or when the Enter button is pressed after manually changing the date field, rather than on every change in a modal ...
0
votes
0
answers
32
views
How can I delete time from date in moment().calendar()?
I am trying to get Today and Tomorrow titles from date using Moment Calendar.
In case moment(date).calendar() I get Tomorrow at 12:00 AM. But I need without time. Just Tomorrow
In case moment(date)....
0
votes
0
answers
53
views
How to change calendar language on TextField type='date'
I am using React and Material-UI
I know about the existence of the LocalizationProvider and how I can use it to change the language of my DatePicker.
However, in my project, I must use TextField with ...
1
vote
2
answers
57
views
Precise fractional years distance between two dates in Swift
I need to compute with precision the distance in years between two dates. Given the fact that all the years don't have the same amount of days, some have 366, I can't count the days between the two ...
-3
votes
1
answer
93
views
Understanding number of days in a month calculation
I found this code in a Gist, that calculates the last day in a month (or in other words: the number of days in a month):
private fun lastDayInMonth(month: Int, year: Int): Int {
return if (month !=...
0
votes
2
answers
167
views
One day difference in Converting Gregorian to Hijri date using Intl.DateTimeFormat
I am trying to convert Gregorian to Hijri date using Intl.DateTimeFormat, But every time it converts one day ahead. For example today is 11 Ramadan but every time it results in 12 Ramadan.
I have ...
0
votes
2
answers
174
views
Only Return 1 Duplicate Value Based on If The Lowest Row# Duplicate Has Been Returned
The title might be confusing. Long and short, I'm referencing dates in a specific column from sheet1 in comparison to the date on the calendar in sheet2. This is returning relative information from ...
-1
votes
1
answer
39
views
Bank Days (Working Business Days) Connected To SQL Source
How do I show the working days for 2023 and 2024 in a table in Power BI?
When I try to add in the Working Days it shows up as calendar days and includes weekends and holidays.
Is there a way to show ...
1
vote
2
answers
104
views
Calendar Class method in Java seems to be not giving correct result [duplicate]
Can someone please explain why is the behavior of the below piece of code not as expected.
import java.util.Calendar;
import java.util.Date;
import java.text.SimpleDateFormat;
public class Test {
...
-1
votes
1
answer
64
views
tm date outputs wrong date in c++?
I have a c++ program with:
std::tm date{};
date.tm_year = 2023 - 1900;
date.tm_wday = 0;
date.tm_yday = (50 - 1) * 7;
std::mktime(&date);
std::cout << std::put_time(&date, "%A, %B %...
0
votes
0
answers
72
views
PowerBI Gantt Chart Will Only Accept Limit on One End and Not the Other
In a PowerBi Gantt chart, I had added two formulas to calculate the previous month from this month and a different formula to calculate the next month from this month.
The relevant fields contain this ...
0
votes
2
answers
59
views
Json Deserialization of string "2023-11-10 23:01:18.940" to calendar
I am trying to deserialize json String date to Calendar and deserialization is working however it is not what i want.
Current Behaviour
@JsonProperty("systemDt")
@JsonFormat(Pattern="...
1
vote
1
answer
113
views
Check the number of sundays between two dates
I am trying to calculate the number of sundays there are between 2 dates.
If possible i'd like to avoid counting the first sunday if it's less than 7 days after the first date. See it as counting the ...
0
votes
0
answers
19
views
generate_series() failed in Redshift [duplicate]
I worked well in DBeaver with code
INSERT INTO table_dates(calendar_date, day_of_week)
SELECT
generate_series::date as calendar_date,
To_Char(generate_series, 'Dy') as. day_of_week
FROM ...