Hi,
For that u can use DateTime class.
DateTime dt = new DateTime.Now;
By this u will get current date and time.
Thanks,
Hitesh
Extremest wrote:
> I have a bunch of dates in a couple different formats. I would like to
> convert them to epoch. The dates are like this
>
> Mon, 12 Jun 2006 09:18:22 GMT
> 12 Jun 2006 10:37:28 GMT
>
> I can do this in perl easily with the Date::Manip module but don't know
> how to do it in c#. Is there a way to do this or do I need to right
> something to parse each date?
|