This would be done using DateTime (which incidently is a .Net data type, not
just for C#).
DateTime snappedDate = DateTime.Now;
string snappedString = snappedDate.ToString ( "dd MMM yyyy HH:mm:ss" );
DateTime specificDate = DateTime.Parse("12 Jun 2004 13:23:32");
"L" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> In C++ the code below sets CurrentMainFrameTime to 1111635540
>
> intMFMonth = 3;
> intMFDay = 23;
> intMFHour = 19;
> intMFMin = 39;
>
> CTime
> CurrentMainFrameTime(CTime::GetCurrentTime().GetYear(),intMFMonth,intMFDay,intMFHour,intMFMin,0);
>
> How can I achieve the same in C#.
>
> Thanks,
> Lalasa.
>
|