Is the DateFormat read only?

J. Landman Gay jacque at hyperactivesw.com
Fri Oct 30 16:06:17 EDT 2020


On 10/29/20 4:33 PM, Graham Samuel via use-livecode wrote:
> The only souci with this format is that it gives the month in alpha, presumably according to the nationality of the OS. But it’s easy to get the numeric month in other ways. Still, it is just a little bit fiddly to create a full UTC date of the format:
> 
> YYYY-MM-DDThh:mm:ssTZD

Here's something I use:

   put the seconds into tTime
   convert tTime to dateitems
   subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime
   convert tTime to dateitems
   set the numberformat to "00"
   put item 1 of tTime &"-"& (item 2 of tTime)+0 &"-"& (item 3 of tTime)+0 & "T" & (item 4 of 
tTime)+0 &":"& \
         (item 5 of tTime)+0 &":"& (item 6 of tTime)+0 & "Z" into tTimestamp

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list