Solved

Convert Clarion date to normal (.net) date

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now