--- title: "create date(template)" slug: "date-from-string" updated: 2026-08-13T07:08:07Z published: 2026-08-13T07:08:07Z canonical: "docs.lobstersoftware.com/date-from-string" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # create date(template) **NOTE:** For new Profile implementations, please use function "create date strict(template)" instead. Returns a timestamp based on the value in **a** and the format template **b**. If in the error case the value cannot be parsed, the result of the function is the current date with set Empty Flag. If **a** already has the data type "Timestamp" or "Date", a conversion is not necessary. In this case, parameter **b** has to remain empty. ## Parameters | Parameter | Description | | --- | --- | | a | Text to be interpreted. If the text cannot be interpreted, the function returns the current date with set Empty Flag. **NOTE:** If an actual "Date" or "Timestamp" object is specified here instead of a text, parameter **b** has to remain empty. | | b | The [Format templates for dates and times](/v1/docs/en/intro-concepts-format-templates). | ## Examples Current date of this example: "2011-10-20 15:33:23.0". | Parameter a | Parameter b | Result | | --- | --- | --- | | 241205 | ddMMyyHHmm | 2011-10-20 15:33:23.0 | | No date | ddMMyyHHmm | 2011-10-20 15:33:23.0 | | 2412050820 | ddMMyyHHmm | 2005-12-24 08:20:00.0 | | 1997-07-16T19:20:30Z (see [Format templates for dates and times](/v1/docs/en/intro-concepts-format-templates)) | W3C | 1997-07-16 21:20:30.0 | A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required.