Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:749735
More Search Options
RSS Available
Matching Posts
Serialized dates.. what are extra number?
Hi, I have a simple webservice that has some date fields like the following [WebMethod] public MyClass Function1() { MyClass _MyClass = new MyClass(); _MyClass.Date1 = //get_date_from_db.ToUniversalTime(); return _MyClass; } Now when I call the webservice from the browser, I see the date in the following format 2009-06-03T04:03:59Z -- which is all good But some dates are in the following format 2009-06-17T21:37:33.173Z -- What is this number after the period at the end? I need to remove this number
Posted to
Getting Started
(Forum)
by
matrixIII
on 6/18/2009
Filed under: dateTime conversion
Re: Serialized dates.. what are extra number?
ok so, it was millisecond The following code worked [WebMethod] public MyClass Function1() { MyClass _MyClass = new MyClass(); _MyClass.Date1 = //get_date_from_db.ToUniversalTime(); _MyClass.Date1 = _MyClass.Date1.AddMilliseconds(0 - _MyClass.Date1.Millisecond); return _MyClass; }
Posted to
Getting Started
(Forum)
by
matrixIII
on 6/18/2009
Re: UTC/GMT Date Literal String?
Actually the following works without using and literats or constants and gives me a blank UTC date. If anyone has a better or cleaner solution please let me know. new DateTime ().ToUniversalTime().AddMilliseconds(( new DateTime ().Subtract( new DateTime ().ToUniversalTime())).TotalMilliseconds) Thanks
Posted to
Getting Started
(Forum)
by
matrixIII
on 6/2/2009
UTC/GMT Date Literal String?
Hi, I need to serialize some dates to send over via web services. if my date is not null or not empty or not blank such as the following.. DateTime _DateTime = new DateTime(2009,6,2); I use _DataTime. ToUniversalTime() which is all good and it converts my local datetime to UTC/GMT nicely which is in the format 2009-05-24T17:51:21Z . Now, if the date is null or empty or blank such as the following... DateTime _DateTime = new DateTime(); I use _DataTime.ToUniversalTime() which takes 0001-01-01T00:00
Posted to
Getting Started
(Forum)
by
matrixIII
on 6/2/2009
Re: Automatically create WebService by looking at existing Assembly Class
Thanks for the reply, The dll has like 60+ classes and many many functions. I was trying to avoid the manual work. Exposing everything is not an issue since it will require authentication. I will do a search on your "extract the interface" suggestion.
Posted to
XML Web Services
(Forum)
by
matrixIII
on 5/6/2009
Automatically create WebService by looking at existing Assembly Class
I have a .dll from a vendor, lets call it ClassCollection1.dll I reference this in my projects and use the classes in it with no problem. Is there a tool out there that will write/spit out WebService code by looking at the classes inside ClassCollection1.dll? So, basically it will create WebService files. It will not de-compile the ClassCollection1.dll, just create function stubs and then actually call ClassCollection1.dll classes to perform the action (since they will be on the same machine and
Posted to
XML Web Services
(Forum)
by
matrixIII
on 4/29/2009
Re: UpdatePannel causing full postback on iPhone safari 3g
Thanks.. that was somewhat helpful!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
matrixIII
on 4/23/2009
UpdatePannel causing full postback on iPhone safari 3g
I have a copule of updatepannels on a page. They work fine in all the PC browsers and iPhone Safari lastest release over wi-fi connection. As soon as the iphone goes to "3g" mode the same updatepanels start causing "full postback" and not partial page updates. I am guessing the issue the either 1. .net updatepanel detects that the connection is slow and does not send the javascript client side libraries causing full postback. 2. Sarari sends something in the headers telling the
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
matrixIII
on 4/17/2009
Re: Unable to use session state server....requires session state server version 2.0 or above.
I re-installed .net 2.0 and that fixed it. Hope it helps someone...
Posted to
Installation and Setup
(Forum)
by
matrixIII
on 3/26/2009
Re: Unable to use session state server....requires session state server version 2.0 or above.
Oh I am not using a sql server (or any database server) for the session state. I am using the "stateserver" option not "sqlserver" so, it just stores the session state in memory using stateserver.exe service. I actually came across those articles before but for those people it didnt work at all. Mine just throws exception for the first access of the application and then everything is fine...
Posted to
Installation and Setup
(Forum)
by
matrixIII
on 1/29/2009
Page 1 of 40 (398 items) 1
2
3
4
5
Next >
...
Last ยป
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Channel 9:
Enabling Help in the Visual Studio 2010 Shell
Channel 9:
Office Casual - Smart Art
WindowsClient:
Prism and MEF
IIS.NET:
Overcoming the Challenges Enterprises Face with Streaming Video
Silverlight:
MEF, Silverlight and the HVP
TechNet Edge:
Client and Cloud Security
TechNet Edge:
Client and Cloud Security
Channel 9:
Building on Azure: Persistent Systems
Channel 9:
Building on Azure: Persistent Systems
TechNet Edge:
AD RMS Certificate Hierarchy and the Protection Process
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online