Create two 3DText mesh in unity and create a empty game object and attach the below script.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeStampHandler : MonoBehaviour
{
public TextMesh dateText, timeText;
// Use this for initialization
void Start () {
}
void Update()
{
//string currDay = System.DayOfWeek;
string currDate = System.DateTime.Now.ToString("yyyy/MM/dd ").ToString();
string currTime = System.DateTime.Now.ToString("HH:mm:ss").ToString();
dateText.text = System.DateTime.Now.DayOfWeek.ToString() + " " + currDate;
timeText.text = currTime;
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeStampHandler : MonoBehaviour
{
public TextMesh dateText, timeText;
// Use this for initialization
void Start () {
}
void Update()
{
//string currDay = System.DayOfWeek;
string currDate = System.DateTime.Now.ToString("yyyy/MM/dd ").ToString();
string currTime = System.DateTime.Now.ToString("HH:mm:ss").ToString();
dateText.text = System.DateTime.Now.DayOfWeek.ToString() + " " + currDate;
timeText.text = currTime;
}
}