Convert Clarion date to normal (.net) date

Hi,

I have a Clarion date which is a long value. How can i convert this to a normal date value?

Thanks
DeonMAsked:
Who is Participating?
 
Gyanendra SinghConnect With a Mentor ArchitectCommented:
try this


 
    * public object GetClarionDate(object ClDate)
    * {
    *     object functionReturnValue = null;
    *     if (ClDate == 0) {
    *         functionReturnValue = Null;
    *     }
    *     else {
    *         functionReturnValue = DateAdd("d", (long)ClDate, (System.DateTime)"12/28/1800");
    *     }
    *     return functionReturnValue;
    * }

Open in new window

0
 
DeonMAuthor Commented:
Thanks for your reply,
Could i have this in C# code please as some of the functionality isn't recognized by C# :(

Thanks
0
All Courses

From novice to tech pro — start learning today.