Solved

Convert Clarion date to normal (.net) date

Posted on 2008-10-14
2
1,989 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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