Hello
I have following piece of code...
dateT = Now().ToString("hh:mm tt")
I want to change it to -4 hours .. I want to show current time - 4 hours
How is this possible ?
Regards,
Calm
Printable View
Hello
I have following piece of code...
dateT = Now().ToString("hh:mm tt")
I want to change it to -4 hours .. I want to show current time - 4 hours
How is this possible ?
Regards,
Calm
you use addhours, but pass a negative
Code:Dim MyTime As DateTime = DateTime.Now.AddHours(-4)
MessageBox.Show(MyTime.ToString("hh:mm tt"))
Thanks Kleinma... It worked