Function Reference
GetFileCreated
Gets created date from filepath and converts to given format.
Syntax:
wwdatetime:GetFileCreated($filePath, $format)
Parameters:
Name
Type
Description
filePath
string
 
format
string
The datetime format.
Returns:
string: A datetime string.
Example:
<xsl:value-of select="wwdatetime:GetFileCreated('C:\home\sally\statusReport\hello.docx', 'MM/dd/yyyy')" />

GetFileLastModified
Gets last modified date from filepath and coverts to given format.
Syntax:
wwdatetime:GetFileLastModified($filePath, $format)
Parameters:
Name
Type
Description
filePath
string
 
format
string
The datetime format.
Returns:
string: A datetime string.
Example:
<xsl:value-of select="wwdatetime:GetFileLastModified('C:\home\sally\statusReport\hello.docx', 'MM/dd/yyyy')" />

GetFromDateTimeString
Gets a date and specific format, converts the date to another format.
Syntax:
wwdatetime:GetFromDateTimeString($dateTime, $inputFormat, $outputFormat)
Parameters:
Name
Type
Description
dateTime
string
 
inputFormat
string
The datetime format input.
outputFormat
string
The datetime format output.
Returns:
string: A datetime string.
Example:
<xsl:value-of select="wwdatetime:GetFromDateTimeString('05/17/1991', 'MM/dd/yyyy', 'dd/MM/yy')" />

GetGenerateStart
Gets StartDate at beginning of generation and converts to given format.
Syntax:
wwdatetime:GetGenerateStart($format)
Parameters:
Name
Type
Description
format
string
The datetime format.
Returns:
string: A datetime string.
Example:
<xsl:value-of select="wwdatetime:GetGenerateStart('MM/dd/yyyy')" />

GetNow
Takes a format string and gets DateTime in the given format.
Syntax:
wwdatetime:GetNow($format)
Parameters:
Name
Type
Description
format
string
The datetime format.
Returns:
string: A datetime string.
Example:
<xsl:value-of select="wwdatetime:GetNow('MM/dd/yyyy')" />

Was this helpful?
Last modified date: 01/12/2026