Solved

Convert Clarion date to normal (.net) date

Posted on 2008-10-14
2
2,012 Views
Last Modified: 2013-12-17
Hi,

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

Thanks
0
Comment
Question by:DeonM
2 Comments
 
LVL 16

Accepted Solution

by:
Gyanendra Singh earned 125 total points
ID: 22709739
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
 

Author Comment

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

Thanks
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question