<?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>topic Re: JSL: automatic pull today's date and build into the script questions in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191015#M41017</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9711"&gt;@Stokes&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Maybe something like this ? I am assuming that you want the script to always use the current date because you did not specify what that value needs to take.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;START_DATE = "03Apr2019_19_19_34";

CurrTime = As Date(Today()); 

CurrTimeChar = Char(CurrTime); 

Left = Words(CurrTimeChar,":"); 

Date = Left[1]; 

DesDate = Date || "_" || Char(Hour(CurrTime)) || "_" || Char(Minute(CurrTime)) || "_"|| Char(Second(CurrTime)); 

START_DATE = DesDate; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Apr 2019 17:24:23 GMT</pubDate>
    <dc:creator>uday_guntupalli</dc:creator>
    <dc:date>2019-04-03T17:24:23Z</dc:date>
    <item>
      <title>JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/190999#M41012</link>
      <description>&lt;P&gt;Hi, in my current JSL script, there is a phrase to define the start date of data pull, it is below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;START_DATE = "03Apr2019_19_19_34";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to replace&amp;nbsp;"01Mar2019_19_19_34" into "today's date".&lt;/P&gt;&lt;P&gt;Basically whenever open the JSL, I hope this "01Mar2019_19_19_34" will be automatically updated into&amp;nbsp;the current date/time.&lt;/P&gt;&lt;P&gt;Also, I hope to still keep the same format of&amp;nbsp;"01Mar2019_19_19_34".&lt;/P&gt;&lt;P&gt;Is there a way to do it?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 16:31:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/190999#M41012</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-04-03T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191015#M41017</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9711"&gt;@Stokes&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Maybe something like this ? I am assuming that you want the script to always use the current date because you did not specify what that value needs to take.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;START_DATE = "03Apr2019_19_19_34";

CurrTime = As Date(Today()); 

CurrTimeChar = Char(CurrTime); 

Left = Words(CurrTimeChar,":"); 

Date = Left[1]; 

DesDate = Date || "_" || Char(Hour(CurrTime)) || "_" || Char(Minute(CurrTime)) || "_"|| Char(Second(CurrTime)); 

START_DATE = DesDate; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2019 17:24:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191015#M41017</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-04-03T17:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191260#M41030</link>
      <description>&lt;P&gt;Here is a more succinct solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;START_DATE = Substitute( Format( Today(), "ddMonyyyy:h:m:s" ), ":", "_" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:28:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191260#M41030</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-04-04T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191325#M41042</link>
      <description>&lt;P&gt;Can I ask why you want to do this?&amp;nbsp; Are you trying to make a start time in a gui update?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 18:24:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191325#M41042</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-04-04T18:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191364#M41052</link>
      <description>&lt;BLOCKQUOTE&gt;Thanks for the help&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 21:41:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191364#M41052</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-04-04T21:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: automatic pull today's date and build into the script questions</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191365#M41053</link>
      <description>&lt;P&gt;Thanks for all help, I use this function to automatically update the date in my script so I can get the updated data from "today"&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 21:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automatic-pull-today-s-date-and-build-into-the-script/m-p/191365#M41053</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-04-04T21:50:56Z</dc:date>
    </item>
  </channel>
</rss>

