gregorian-calendar Questions
7
Solved
I want to convert from Gregorian to Hijri(Islamic) date and I need a java class for this converting. I want to give it an Gregorian date in format of "yyyy/mm/dd" as string and it give me the Hijri...
Hance asked 31/3, 2013 at 11:4
3
Solved
I need Objective C method for converting Gregorian date to Julian days same as this PHP method (GregorianToJD).
Cabbageworm asked 3/4, 2014 at 6:36
5
Solved
How do you convert Gregorian dates to Islamic Hijri dates using JavaScript?
Belita asked 3/3, 2011 at 6:51
7
Solved
How can I display only the last two digits of the current year without using any substring algorithms or any third party libraries?
I have tried the below method and it gave a four-digit year. I w...
Propose asked 19/11, 2013 at 11:26
7
Solved
I want to convert a custom Gregorian date to Persian date in C#.
For example, i have a string with this contents:
string GregorianDate = "Thursday, October 24, 2013";
Now i want to have:
stri...
Tortola asked 6/6, 2015 at 13:51
9
Is there any direct way to set a date to a variable but as an input?
I mean that i don't know the date at design time, the user should give it.
I tried the following code but it doesn't work:
Cale...
Cristophercristy asked 20/12, 2014 at 13:23
2
Solved
When I use Jackson polymorphic serialization, it generates a JSON object with an incorrect fully qualified class name.
The code below serializes an XMLGregorianCalendar. The output is:
["java.uti...
Vondavonni asked 13/3, 2018 at 14:17
15
Solved
The code in question is below:
public static string ChangePersianDate(DateTime dateTime)
{
System.Globalization.GregorianCalendar PC = new System.Globalization.GregorianCalendar();
PC.CalendarT...
Worked asked 24/10, 2011 at 11:58
1
I have this code which returns Number of week correctly.
package org.test.Calendar;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class GetDaysInMonth {
public static vo...
Aeneas asked 1/5, 2020 at 6:30
3
Solved
I am trying to get current time in other time zone. I used this code for this:
GregorianCalendar calender = new
GregorianCalendar(TimeZone.getTimeZone("Asia/Bangkok"));
System.out.println(calend...
Kensell asked 3/2, 2015 at 10:50
2
I want to convert LocalDate to GregorianCalendar. Please advice.
In my application we are using GregorianCalendar to work with date's. But I got a Joda LocalDate as a return type when I called one...
Nunnally asked 13/10, 2016 at 20:23
5
Solved
I'm developing a webservice integrated with spring-struts web application, in XSD there is a XMLGregorianCalendar type property, let's say the property name is trxDate.
In SOAPUI testing applicat...
Dorser asked 20/2, 2013 at 11:7
5
I want to use a Date in XMLGregorianCalendar format for sending to a web service. The web service expects information in yyyy-dd-mm format. I use the below code to create an XMLGregorianCalendar an...
Vivian asked 27/12, 2012 at 19:28
3
Solved
I had a look at the java api about GregorianCalendar and did not see any way of setting the am/pm
in its constructor. Can you set AM/PM in a GregorianCalendar date or is it something you can only g...
Improvvisatore asked 12/3, 2012 at 12:33
2
Solved
I'm working with webservices, inserting records, that return a timestamp value in XMLGregorianCalendar type. I need to transform it in a java.sql.Timestamp value, so I use a function like this.
pu...
Anesthetize asked 3/10, 2012 at 16:20
2
Solved
I'm trying to assign a XMLGregorianCalendar date to a java.sql.Timestamp var, like this...
var1.setTimeStamp(Timestamp.valueOf(var2.getXMLGregorianCalendar().toString()))
But apparently, this is...
Caia asked 20/9, 2012 at 7:58
3
Solved
We are using the below code snippet to get number of days for the provided month and year. For 02 and 2011, It returns the no of days as 31 ( which is not the case). for 02 and 2016, it retur...
Baxley asked 29/4, 2018 at 10:57
2
Solved
Let's say I have an integer representing Epoch time, for example epoch = 1499055085, and I want to convert it to UTCTime in Haskell.
How can I do this?
In other languages this is a very trivial t...
Kroeger asked 4/7, 2017 at 11:45
6
Solved
When I do like below,
GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
calendar.setTime(startTime); // startTime Date
DatatypeFactory.newInstance().newXMLGregorian...
Feune asked 18/5, 2015 at 8:12
5
Solved
I am in need of a method to convert GregorianCalendar Object to Unix Time (i.e. a long). Also need a method to convert Unix Time (long) back to GregorianCalendar Object. Are there any methods out t...
Stapleton asked 25/10, 2010 at 20:17
3
Solved
How to convert between calendars? Here is what I have:
UmAlQuraCalendar hijri = new UmAlQuraCalendar();
GregorianCalendar cal = new GregorianCalendar();
DateTime hijriDate = new DateTime(1434, 11...
Inheritrix asked 29/9, 2013 at 8:0
2
I know that Gregorian calendar started on Oct 15th 1582, and during the transition from Julian calendar, 10 days had been dropped.
When I'm doing this query:
SELECT STR_TO_DATE('1582-10-05', '%Y...
Hypesthesia asked 23/11, 2017 at 18:1
2
Solved
I have a date in the Gregorian calendar and want to look up the same day in the Julian calendar.
This should be easy with the Date/Time API of Java 8 but I couldn't find a way to do it. The code s...
Azelea asked 29/10, 2017 at 14:17
2
I need to create a program that reads dates from a .csv file and convert it so that 13 days are added. I already did that but somehow it does not add the following dates as wished. It also go...
Indigotin asked 24/10, 2017 at 9:0
5
Solved
So, I've been racking my brain over this (should-be) simple exercise to make the program turn a date string into a GregorianCalendar object, format it, and return it again as a string when it's don...
Agranulocytosis asked 31/5, 2012 at 8:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.