Java Date toGMTString() MethodLast Updated : 17 Mar 2025 The toGMTString() method of Java Date class converts this date object into a String in form "d mon yyyy hh:mm:ss GMT". This method is deprecated as of JDK version 1.1 and by using GTMTimeZone it is replaced by DateFormat.format(Date date) Syntax:ParametersNA ReturnThe toGMTString() returns a String representing this date object. Example 1Output: Current date to GMT string : 2 Oct 2018 13:06:34 GMT Next TopicJava Util Date |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India