C
HAPTER
5
Advanced Expressions: Working with Dates, Times, and Numbers
Most numeric data that the NetScaler processes consists of dates and times.
However, advanced expressions also work with other numeric data, for example,
the lengths of HTTP requests and responses.
You can configure advanced expressions to evaluate and to perform operations on
dates, times, and other numeric data. For example, you can configure an
expression to perform the following:
Extract an expiration date and time from an SSL certificate, and determine
if it falls within a specified range.
Extract the NetScaler system time.
Extract other numeric data points, for example, a status code or a version
number.
Extract a full IP address or MAC address, or a subset of one.
Add the lengths of two strings.
This chapter concentrates on date and time data, and a few other types of non-
date-related numeric data.
In This Chapter
Format of Dates and Times in an Expression
Dates and Times in a Rewrite Action
Expressions for the NetScaler System Time
Expressions for SSL Certificate Dates
Expressions for HTTP Request and Response Dates
Expression Prefixes for Numeric Data Other Than Date and Time