Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2053
  • Last Modified:

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
0
DeonM
Asked:
DeonM
1 Solution
 
Gyanendra SinghArchitectCommented:
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now