Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Convert Clarion date to normal (.net) date

Posted on 2008-10-14
2
Medium Priority
?
2,041 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Gyanendra Singh earned 375 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

618 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