Same value in c# as VBScript's Time value

karipidhi

New Member
I have a site with .asp pages. I am building onto the site with ASP.NET. I am having an issure with a cookie that holds the time. I set the time in an asp page that gives it the value of Time. <BR><BR>How can I get the same value as VBScript's Time variable in C#?<BR>The C# version needs to be in the same format as the Time value.<BR><BR>Thanks a million<BR>DeanTake a look at the System.DateTime structure. In particular Now property.<BR><BR>Sample code<BR>-----------<BR>Response.Write("The date is {0:d}", System.DateTime.Now)
 
Back
Top