BlackBull
BlackBull
CC#
Created by BlackBull on 10/10/2022 in #help
Need help getting cest timezone
i currently have this code
var timer = new PeriodicTimer(TimeSpan.FromSeconds(1));

while (await timer.WaitForNextTickAsync())
{
DateTime dateNow = DateTime.Now;
label5.Text = "The date and time are {0} UTC."+
TimeZoneInfo.ConvertTimeToUtc(dateNow);
string time = DateTime.Now.ToString("hh:mm");
}
var timer = new PeriodicTimer(TimeSpan.FromSeconds(1));

while (await timer.WaitForNextTickAsync())
{
DateTime dateNow = DateTime.Now;
label5.Text = "The date and time are {0} UTC."+
TimeZoneInfo.ConvertTimeToUtc(dateNow);
string time = DateTime.Now.ToString("hh:mm");
}
but this gets the time in utc i want to get the time cest who can help me out
4 replies
CC#
Created by BlackBull on 10/9/2022 in #help
string query in C Sharp
55 replies