C# Lesson! How To Get the DATE and TIME From Device [Intermediate Tutorial – Unity 2019]

6
13



馃憤 How to work with date and time. In this tutorial we’ll focus on the system date. How to get it, and how to format it.

馃憤 Extra tip: You can get the NAME of the day by typing “ddd” or “dddd”. Try this:
print(“Today is ” + System.DateTime.UtcNow.ToLocalTime().ToString(“dddd”));

路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路

鉂わ笍 Subscribe to Oxmond Tutorials. New videos every day!

鉁 Download the Date script here:

鉁 Download Free Assets from the Unity Assets Store:

++++++++++++++++++++++++++++++++++++++++++++

馃捇 Visit our website for more tips & tricks:

路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路

馃摫 Try our Bumperball game:
iOS:
Android:

路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路

馃 Some links might be affiliate links. Any support is truly appreciated so we can keep on making high quality content 馃檪

锔忦煄 #learnunity #unitytutorial #videogametutorial

++++++++++++++++++++++++++++++++++++++++++++

Ngu峄搉:https://wijstaanvooronzegrondrechten.org/

6 COMMENTS

  1. How do I make so it shows 1 hour into the future? example: it's 14:00 and I want it to display 15:00, or it's 11:00 and it would display 12:00
    Any help would be great

  2. but is there a way to know the actual stats of the day ? "i mean morning or evening" not
    PM and AM i mean if it's actually day or night ?

  3. Your videos are awesome thanks for the sharing your knowledge with us.Can you make a video on changing the color of the 3d object.
    Refer Link : ( https://www.youtube.com/watch?v=KBP9MFaD1kg).In this video stating at 0.50 , they change the color of the car slowly to another color.Can you make a tutorial on this, it will very helpful for us.Thanking you

LEAVE A REPLY

Please enter your comment!
Please enter your name here