Getting only hour/minute of datetime April 10, 2023 by Tarik Try this: String hourMinute = DateTime.Now.ToString("HH:mm"); Now you will get the time in hour:minute format.