c# - Make WCF DateTime Compatible for Java client -


i'am designing wcf service wich consumed java client returning array of object .

i design small java application display output object collection fields.

all fine except datetime wich displayed follow :

java.util.gregoriancalendar[time=1370969700000,arefieldsset=true,areallfieldsset=true,lenient=true,zone=sun.util.calendar.zoneinfo[id="gmt+01:00",offset=3600000,dstsavings=0,usedaylight=false,transitions=0,lastrule=null],firstdayofweek=2,minimaldaysinfirstweek=4,era=1,year=2013,month=5,week_of_year=24,week_of_month=2,day_of_month=11,day_of_year=162,day_of_week=3,day_of_week_in_month=2,am_pm=1,hour=5,hour_of_day=17,minute=55,second=0,millisecond=0,zone_offset=3600000,dst_offset=0]

could @ least guide me best pratice or attribute add in service prevent issue ?

is there java turn around ?

thank in advance

a java calendar objects gives information need precisely definte moment in time: time (internally in millisecs since epoch 01/01/1970), timezone, ....

so there nothing change behaviour, except in code can obtain "date" object (also containing time) calendar object obtained using gettime() method.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -