DateTime class problem.

01-11-2013 09:21 AM
Status: Open
New Contributor II
In our work In Saudi Electricity Company we faced a problem when we want to store the date in a feature using our ArcMap extension interfacing edits.  That problem is when we call the date from the domain server and try to store it in feature's DateTime field it stores a very different date.  And since we are dealing with clients who can be using Gregorian or Hijra calendar we needed to build a function to store all dates in Gregorian.  The problem was found in Microsoft's DateTime class, so we had to devise a work around code to solve that problem.
Server given date 01/01/2012 14:12:00
When trying to insert that date in a DateTime object it gets changed to a starnge date 04/06/2526
Tags (1)