Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

TimeZone in asp.net core

public static DateTime DateNow()
        {
            DateTime utcTime = DateTime.UtcNow;
            TimeZoneInfo myZone = TimeZoneInfo.CreateCustomTimeZone("INDIA", new TimeSpan(+5, +30, 0), "India", "India");
            DateTime custDateTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, myZone);
            return custDateTime;
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: linq from multiple tables 
Csharp :: c# debug writeline 
Csharp :: convert number of days into months c# 
Csharp :: web page search c# 
Csharp :: get the number of cpu c# 
Csharp :: c# xml get child node by name 
Csharp :: unity time scale 
Csharp :: c# replace multiple characters 
Csharp :: asp.net format datetime 
Csharp :: Get Last Access Time Of Directory C# 
Csharp :: c# form set auto scale 
Csharp :: convert pdf to image c# 
Csharp :: static class can have non static member in c# 
Csharp :: vb.net get date minus one day 
Csharp :: ihttpactionresult to object c# 
Csharp :: how to display array in string in c# 
Csharp :: unity 2d enemy patrol script 
Csharp :: c# write iformfile 
Csharp :: wpf keyboard press event 
Csharp :: unity deactive all object in list 
Csharp :: max index array c# 
Csharp :: unity audio source 
Csharp :: c# only letters 
Csharp :: c# read xml tag value 
Csharp :: c# list string where 
Csharp :: start a particle effect when a button is pushed 
Csharp :: monogame print debug 
Csharp :: ontriggerenter2d 
Csharp :: c# invokerequired wpf 
Csharp :: demand a Security action c# 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =