Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Date-Calendar Java Calendar issue
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


gdhariwal
Java Calendar issue
0 Answer(s)      4 years and 3 months ago
Posted in : Date-Calendar


Hi

I have having weird situation with java Calendar, its driving me crazy.

My requirenment is that i got a xml schema element that accepts only Calendar Type

Say element <expDtTime>2011-09-25T13:00:00</expDtTime>
Say Singapore time zone
When i send the element from client to server my cal obj works perfectly ok
Calendar cal = getElement(expDtTime);

Once it reaches server i do timezone changes to GMT do calculations and then return the obj back to client to display time in Singapore timezone

Here is the issue

my Calendar Obj is passing me
<expDtTime>2011-09-25T13:00:00.000Z</expDtTime>

Which is not the required format. I want to get rid of the trailing .000Z

I should get back
<expiryDateTime>2011-09-25T13:00:00</expiryDateTime>

Is there any way to get rid of this pls help.
I have tried using date formatter and assigning back to cal obj but as soon as i assign back to calendar obj it changes back to .000Z I dont want timezone part of it.

Any suggestions or help would be much appreciated.


Thanks in advance



Advertisement
View Answers

Related Tutorials/Questions & Answers:
Java Calendar issue - Date Calendar
Java Calendar issue  Hi I have having weird situation with java Calendar, its driving me crazy. My requirenment is that i got a xml schema... to client to display time in Singapore timezone Here is the issue my Calendar Obj
Decimal Format Issue Java
Decimal Format Issue Java  Decimal Format Issue Java
Advertisements
Java Calendar !?
Java Calendar !?  I need to create a Java Calendar in an Applet. The calendar displays months (jan - dec) in a 3x4 grid ... jan feb march \n april.... so if a user picks the year 2000 show the calendar from that year. So how do i
Java Coding - Date Calendar
Java Coding  Write a program that prompts the user to enter the year and first day of the year and displays the calendar for the year on the console... 1,2005, your program should display the calendar for each month in the year
class Calendar - Java Beginners
print a calendar for any month starting Junuary 1,1500.Note that the day... Calendar,include the following operations: a.Determine the first day of the month for which the calendar will be printed.Call this operation firstDayOfMonth
Need an Example of calendar event in java
Need an Example of calendar event in java  can somebody give me an example of calendar event of java
java yesterday - Date Calendar
java yesterday  Afternoon,Yesterday i have a question that how... a calender from another windwo use java script package rajanikant.code.sep_2008... = new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime
attach a calendar in java
attach a calendar in java  how i attach a calendar near the box of date of birth in application form of java   Hello Friend, Try the following code: import java.awt.*; import java.awt.event.*; import javax.swing.
Java Button issue - Java Beginners
Java Button issue  I have this project and I have numerous steps to it. I am trying to figure out what I have to do to make my frame panel do what it is I am assigning it to do. I need the program to be able to tell when the user
java again - Date Calendar
java again  I can't combine your source code yesterday, can you help... dt1, String dt2) throws ParseException{ Date date1;// = new Date(); Calendar calendar = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat
Java Program - Date Calendar
Java Program  A java program that display calendar.  Hi Friend, Try the following code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.
continue java - Date Calendar
date1;// = new Date(); Calendar calendar = Calendar.getInstance
Java programme - Date Calendar
Java programme  Can you provide me the coding for Date class provided by java util package
java - Date Calendar
java   Using java how can i change the date format of the system from mm/dd/yy to dd/mm/yy. The code which i wrote is changing the format only on the console and not on the system's control panel.Can you suggest me anything
java - Date Calendar
Java convert string to date  I need an example in Java to convert the string to date.  Convert string to date formatimport java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.*;import java.text.
java yesterday - Date Calendar
java yesterday  And how to make date format DD/MM/YYYY,thank's  Hi friend, Code to help solve the Problem : import java.util.Date; import java.text.SimpleDateFormat; public class SimpleFormatDate { public
ask java - Date Calendar
but in java i found too but i can't to join in another frame. And i want to ask how... information on Java visit to : http://www.roseindia.net Thanks  
calendar
calendar  sir, how to fix calendar in javascript..pls provide the complete source code..   Please visit the following link: http://www.roseindia.net/javascript/javascript-calendar.shtml
calendar
calendar  I got one requirement like this i have to display a calendar with only current month and whenever user selects the date, that date needs to be display in a text field
Wants Suggestion about an issue. - Java Magazine
Wants Suggestion about an issue.  Hi all, I wish to develop a website like Social Networking Websites. For the development i think i should use Java Technology. So Request u guys to do suggest me what Design Pattern, What
calendar - Struts
Java calendar example  Please explain the Java calendar example
calendar - Date Calendar
Creating a Date calendar in Java  I am looking for a code for Creating a Date calendar in Java
this is my code java - Date Calendar
) throws ParseException{ Date date1;// = new Date(); Calendar calendar
Java Date conversion - Date Calendar
Java Date conversion  How do I convert 'Mon Mar 28 00:00:00 IST 1983' which is a java.util.Date or String to yyyy/MM/dd date format in sql
A java application to import outlook calendar data
A java application to import outlook calendar data   Hi, I am Thamarai, i was allocated a task to create a java program to import outllok calander, As I am new to java can any one help me to complete my task
Java Calendar Example
The following Java Calendar Example will discuss java.util.Calender class... of the Calendar class is used to display various values. Code of Java Calendar program... of the calendar class returns a Date object. It is then passed to the println
Add year to Date without using Calendar in java
Add year to Date without using Calendar in java  how could i add a year to a date function without using calendar functions
Java Script Code of Calendar and Date Picker or Popup Calendar
Java Script Code of Calendar and Date Picker or Popup Calendar...; This is detailed java script code that can use for Calendar or date picker or popup... that contains all the java script code that has used in calendar. 3: calendra.css
i want to create dynamic calendar in java
i want to create dynamic calendar in java  i want code and explanation
i want to create dynamic calendar in java
i want to create dynamic calendar in java  i want code and explanation
Java with Ajax calendar - Java Interview Questions
Java with Ajax calendar  Make a Java web application that will give the month and year for all days that fall in a specific day of the month. For example a user will enter day of the week ( e.g. Monday )and day of the month
Advertisements
 

 

 

DMCA.com