formatdatetime

Delphi Win API CreateTimerQueueTimer threads and thread safe FormatDateTime crashes

Hi This is a bit of a long question, but here we go. There is a version of FormatDateTime that is said to be thread safe in that you use GetLocaleFormatSettings(3081, FormatSettings); to get a value and then you can use it like so; FormatDateTime('yyyy', 0, FormatSettings); Now imagine two timers, one using TTimer (interval say ...

Specifying zero padding with format-dateTime

I have the following in xslt <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"&gt; <xsl:output method="xml" version...

xslt umbraco.library:FormatDateTime and the use of / (slash)

This may not be a real XSLT question but more of an Umbraco question. This function as written will output another format as expexted: <xsl:value-of select="umbraco.library:FormatDateTime(data [@alias = 'kursusgangTilmeldingsfrist'], 'dd/MM/yyyy')"/> When called with these three "second arguments" on the current date 'dd MM yyyy' 'd...

JSTL - Format date

Hi! I have a loop that goes through all the news items we have on our site. One of the fields is date ${newsitem.value['Date']}, given in millliseconds. I'd like to display this date in month/day/year format on the webpage. I thought JSTL format tag, <fmt:formatDate>, would help, but I haven't succeeded. Do you know how to do it? ...

XSLT2 format-dateTime - AM/PM without dots/periods

Hi, This is a question for XSLT 2 format-dateTime function. Please can anyone tell me how to make A.M./P.M. display with not dots/periods (AM/PM)? <xsl:variable name="ampm" select="format-dateTime(DATE, '[PN]')"/> The below code returns blank? <xsl:value-of select="replace($ampm,'.','')"/> Thanks, Will ...