Date To Value - CSharp System

CSharp examples for System:DateTime Convert

Description

Date To Value

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from w w w  .ja  va  2 s.c  om*/

public class Main{
        public static double DateToValue(DateTime dateTime)
        {
            return (dateTime - Epoch).TotalSeconds;
        }
}

Related Tutorials