get timezone from a date Java code example Example: c# remove time in datetime var dateAndTime = DateTime.Now; var date = dateAndTime.Date;