<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question GlideDateTime in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171124#M2166</link>
    <description>&lt;P&gt;&amp;lt;p&amp;gt; Can anyone please give Brief about GlideDateTime () and GlideDate()&amp;nbsp; API's. with some Real time Examples.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 02:29:10 GMT</pubDate>
    <dc:creator>BoyaGaneshkumar</dc:creator>
    <dc:date>2025-02-07T02:29:10Z</dc:date>
    <item>
      <title>GlideDateTime</title>
      <link>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171124#M2166</link>
      <description>&lt;P&gt;&amp;lt;p&amp;gt; Can anyone please give Brief about GlideDateTime () and GlideDate()&amp;nbsp; API's. with some Real time Examples.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 02:29:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171124#M2166</guid>
      <dc:creator>BoyaGaneshkumar</dc:creator>
      <dc:date>2025-02-07T02:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: GlideDateTime</title>
      <link>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171127#M2167</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/554909"&gt;@BoyaGaneshkumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GlideDateTime&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The GlideDateTime API handles date and time values. It's more precise than GlideDate because it includes the time component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var now = new GlideDateTime(); // Creates a GlideDateTime object with the current date and time.
gs.info('Current Date and Time: ' + now.getDisplayValue()); // Outputs the current date and time in the user's preferred format.
gs.info('Current Date and Time in UTC: ' + now.getUTCDatetime()); // Outputs the current date and time in UTC format.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GlideDate:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The GlideDate API specifically deals with dates without the time component. It's simpler than GlideDateTime if you only need the date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var date1 = new GlideDate('2024-03-15');
var date2 = new GlideDate('2024-03-20');

if (date1.before(date2)) {
    gs.info('date1 is before date2');
} else if (date1.after(date2)) {
    gs.info('date1 is after date2');
} else {
    gs.info('date1 and date2 are the same');
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Feb 2025 02:34:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171127#M2167</guid>
      <dc:creator>Sandeep Rajput</dc:creator>
      <dc:date>2025-02-07T02:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: GlideDateTime</title>
      <link>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171134#M2168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/554909"&gt;@BoyaGaneshkumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/itsm-forum/understanding-glidedate-and-glidedatetime-in-servicenow/m-p/2970243" target="_blank"&gt;https://www.servicenow.com/community/itsm-forum/understanding-glidedate-and-glidedatetime-in-servicenow/m-p/2970243&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 02:49:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171134#M2168</guid>
      <dc:creator>dgarad</dc:creator>
      <dc:date>2025-02-07T02:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: GlideDateTime</title>
      <link>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171137#M2169</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/554909"&gt;@BoyaGaneshkumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can easily find answer to this in docs and blogs etc.&lt;/P&gt;
&lt;P&gt;Did you check that before posting question here?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 02:51:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/glidedatetime/m-p/3171137#M2169</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-07T02:51:01Z</dc:date>
    </item>
  </channel>
</rss>

