Hi there lazy man :]
public string GetCustomDateString(DateTime date)
{
int difference = TimeZone.CurrentTimeZone.GetUtcOffset(date).Hours;
return string.Format(
"{0} ({1} GMT)",
date.ToString("h:mm tt"),
difference >= 0 ? "+" + difference.ToString() : difference.ToString());
}
--
Milosz Skalecki
MCP, MCAD
[quoted text, click to view] "clintonG" wrote:
> How do I format the current time as: 8:00 PM (GMT -06:00)
>
> <%= Clinton Gallagher
>
>