<div dir="ltr"><div>While not a totally perfect solution, Javascript's lack of types can be kinda valuable here:</div><div><br></div><div>function normalizeDate(value) {</div><div>  const d = new Date(value); // this will do a best guess</div><div>  return (new Intl.DateTimeFormat().format(d)); // this will use the user's locale to format the date</div><div>}</div><div><br></div><div>That could be used in a pipe to format arbitrary date values. A little duck-typing/data checking could make it a lot safer.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Oct 7, 2026 at 12:56 PM Christopher Hughes via GeoMoose-users <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1768901740922613265">




<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello everyone,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I was curious if anyone has had success altering date formats specifically in GeoMoose's template results. I've had some success adjusting the results using the pipes found at
<a href="https://github.com/adammark/Markup.js/" id="m_-1768901740922613265OWAa8dff807-2184-4377-8e84-f3cf2d2d2c6a" target="_blank">
adammark/Markup.js: Powerful JavaScript templates</a> (i.e. converting results to uppercase/lowercase, adjusting the default null value, replacing one string with another). It does give some examples of how to format dates, but I wasn't sure how to implement
 that in GeoMoose's deployment of MarkUp.</div>
<div style="margin-top:1em;margin-bottom:1em;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The issue is I'm trying to connect to a rest service (so I don't have control of the data at the source). It has a few fields that come through as YYYY-MM-DDTHH:MM:SS-[whatever the UTC modifier is] (which works but is a bit ugly), and a couple that come through
 as the number of seconds since 1970 (which is less useful for the average person).</div>
<div style="margin-top:1em;margin-bottom:1em;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Chris</div>
<div id="m_-1768901740922613265Signature">
<div style="font-size:15px;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255)">--</span></div>
<div style="background-color:rgb(255,255,255);margin:0px">
<div style="direction:ltr;text-align:left;margin:0px;font-size:18px;color:rgb(0,0,0)">
Chris Hughes</div>
<div style="direction:ltr;text-align:left;margin:0px;font-size:12.79px;color:rgb(0,0,0)">
<br>
</div>
<div style="direction:ltr;text-align:left;margin:0px;font-size:12.79px;color:rgb(0,0,0)">
GIS Analyst</div>
<div style="direction:ltr;text-align:left;margin:0px;font-size:10px;color:rgb(0,0,0)">
Lincoln County GIS Department </div>
<div style="direction:ltr;text-align:left;margin:0px;font-size:10px;color:rgb(0,0,0)">
<span style="font-family:Roboto,arial,sans-serif"><a href="https://www.google.com/maps/search/880+NE+7th+St?entry=gmail&source=g">880 NE 7th St</a></span><span>. l Newport, OR 97365</span></div>
<div style="direction:ltr;text-align:left;margin:0px;font-size:10px;color:rgb(0,0,0)">
Tel: <a href="tel:(541)%20574-1283" value="+15415741283" target="_blank">(541) 574 1283</a></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>

_______________________________________________<br>
GeoMoose-users mailing list<br>
<a href="mailto:GeoMoose-users@lists.osgeo.org" target="_blank">GeoMoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</div></blockquote></div>