Hello,
I have the following code in my website:
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
dateLabel.Text = DateTime.Now.ToString("dddd, dd MMMM yyyy")
End Sub
</script>
Having recently transferred hosts to Lunarpages who are based in California (who are GMT/UTC - 08:00 hours), the date now displayed on my website is incorrect.
How do I adjust my code so the day changes at midnight UK time?
Many thanks
Karen
Check out http://msdn2.microsoft.com/en-us/library/system.datetime_members.aspx
----
AddDays Adds the specified number of days to the value of this instance.
AddHours Adds the specified number of hours to the value of this instance.
AddMilliseconds Adds the specified number of milliseconds to the value of this instance.
AddMinutes Adds the specified number of minutes to the value of this instance.
AddMonths Adds the specified number of months to the value of this instance.
AddSeconds Adds the specified number of seconds to the value of this instance.
AddTicks Adds the specified number of ticks to the value of this instance.
AddYears Adds the specified number of years to the value of this instance.
----