The Gregorian calendar is the de facto international civil calendar.
0
votes
0answers
12 views
Gregorian date to Jalali Converter for android
Hi I'm a Java code to convert Gregorian date to the Jalali, but this code does not work in Android
(Java code)
http://www.4shared.com/file/4KbSrHWC/convert_date.html
(vb sample)
...
1
vote
1answer
31 views
What is wrong with this GregorianCalendar?
I have the following code:
Log.e("year = ",eventiCompleti.get(i).year);
Log.e("month = ",eventiCompleti.get(i).month);
Log.e("day = ",eventiCompleti.get(i).day);
Log.e("hour = ...
0
votes
4answers
40 views
Date string from GregorianCalendar based on locale
I am creating an Android application. I have a GregorianCalendar variable. I want to get the date from this variable as MM-dd-yyyy if the locale is US or dd-MM-yyyy if the locale is EU and so on. I ...
0
votes
1answer
55 views
Add 1 month to Feb 28 should result to March 31
I am trying to add 1 month on dates but the problem is when I have a date of Feb 28 then I add another month, I result to March 28. It should end on March 31. Same as when I started with a date of ...
0
votes
2answers
106 views
tapestry5.3.7 t:grid not working with xmlgregoriancalendar
Imported ejb entity into tapestry project looks like this
its in "generated sorces (jax-ws)"
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import ...
0
votes
1answer
115 views
Bad week of year in Java
I have problem with correct week of year. I have JTextField, where I enter date in format DD.MM.YYYY.
private void buttonAddCulturalActionActionPerformed(java.awt.event.ActionEvent evt) { ...
0
votes
1answer
78 views
Extracting data from a text file in order to make a Gregorian Calender
Im in a java class online and struggling with an assignment I have no idea how to do my teach asked us specifically:
"Create a GregorianCalendar object called dteDate. For year, month, date, hour, ...
2
votes
2answers
164 views
Convert date between java and .net - 2 days off
I need to transform a .NET DateTime to an equivalent Java Calendar representation.
The .NET DateTime uses Ticks since Jan 1st 0001 (the .NET epoch) as the underlying representation.
The Java ...
1
vote
2answers
762 views
converting gregorian to hijri date
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 ...
-1
votes
1answer
126 views
GregorianCalendar returns wrong DAY_OF_WEEK in Java
This code:
Calendar calendar;
calendar = GregorianCalendar.getInstance();
calendar.set(year, month, day);
week_day = calendar.get(Calendar.DAY_OF_WEEK);
returns wrong value.
For example when ...
0
votes
2answers
88 views
Q&A: How do I figure out what the last day of the month is?
I was trying to write a roll-your-own timezone converter and I needed a way of determining what the last possible day of the month was. Upon some research, I discovered the formulas for finding a leap ...
0
votes
1answer
303 views
Convert Java Gregorian Calendar in Javascript
I have a JSP page with a java variable inside it which name is ${entry.date}, type of this variable is Gregorian Calendar and it places in a loop and generates a table of error log at last. now my ...
1
vote
2answers
1k views
Making a digital clock in Java
I'm making a digital clock for a project and I have four classes: DigitalTimeUI, which is the JFrame class, TitlePanel, DigitPanel, and ColonPanel, which are JPanels for the item stated. When it is ...
1
vote
0answers
112 views
Loop through number of days in hijri month
I am using a class to convert Gregorian to Hijri dates.
hdate = hijriToGreg(y, m, d);
How do I loop through this to get the number of days in the hijri month?
In other words, how can I get the ...
1
vote
4answers
668 views
How to compare XMLGregorianCalendar with only the Date portion (day, month, year)?
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 ...