Top "Gregorian-calendar" questions

The Gregorian calendar is the de facto international civil calendar.

How do I get the AM/PM value from a DateTime?

The code in question is below: public static string ChangePersianDate(DateTime dateTime) { System.Globalization.GregorianCalendar PC = new System.Globalization.GregorianCalendar(); …

c# .net datetime datetime-format gregorian-calendar
Simple conversion between java.util.Date and XMLGregorianCalendar

I'm looking for a simple method of converting between java.util.Date and javax.xml.datatype.XMLGregorianCalendar in both directions. …

java xml datetime jaxb gregorian-calendar
Specify the date format in XMLGregorianCalendar

I want to use a Date in XMLGregorianCalendar format for sending to a web service. The web service expects information …

java calendar gregorian-calendar
Using GregorianCalendar with SimpleDateFormat

So, I've been racking my brain over this (should-be) simple exercise to make the program turn a date string into …

java simpledateformat illegalargumentexception gregorian-calendar
How to set a date as input in java?

Is there any direct way to set a date to a variable but as an input? I mean that i …

java date calendar gregorian-calendar
How can I get a Date from my Calendar?

I have a Map containing the birthdate of a person as a GregorianCalendar. For example: { motherEmailID=null, coreType=Ticket, _NULL=…

java gregorian-calendar
Getting current Year and Month resulting strange results

I am working on a learning project related to Android. I am trying to get current year & month by …

java android date gregorian-calendar
How do I convert a java.sql.Date object into a GregorianCalendar?

I thought I'd be able to create a GregorianCalendar using the constructor that takes the year, month, and day, but …

java date calendar gregorian-calendar
Convert a string to a GregorianCalendar

How do a I take an input birthday string such as 02 26 1991 and make it into a Gregorian Calendar? I tried …

java string gregorian-calendar
Creating a GregorianCalendar instance from milliseconds

I have a certain time in milliseconds (in a Timestamp object) and I want to use it to create a …

java timestamp gregorian-calendar