In Search&Promote I am creating a Date field with "Monday, 24. May 2013 06:30 PST", and I would like to have it displayed as May/24/2013". How can I do that?
Once you get the Date data in the field you can do whatever you want with it: change format, change time zone (consistently), etc.
For this you need to create a specific mask in the field what will receive the data/time data. You can have multiple masks for the date/time you are getting.
If you do not have a right mask to ingest the data into the field the crawler will complain and will report it as an error in the index log.
By default all dates and times are stored in the index using the time zone set for the index. (Settings > Accounts Options > Account Settings > Time Zone)
if your index is Germany time zone, and the time saved is “11:01:00 PM”, it will be saved as 11:01:00 PM Germany time. This unless you specify a different time zone in the field definition (at the bottom).
[img]date_field.png[/img]
Getting the date out of the index
If the data for date/time was saved successfully in the index now you just need to recover it in the transport layer, where you can format it.
This is how you call the date field in the transport layer: <search-display-field name="field-name" date-format="date-format-string" />
Once you get the Date data in the field you can do whatever you want with it: change format, change time zone (consistently), etc.
For this you need to create a specific mask in the field what will receive the data/time data. You can have multiple masks for the date/time you are getting.
If you do not have a right mask to ingest the data into the field the crawler will complain and will report it as an error in the index log.
By default all dates and times are stored in the index using the time zone set for the index. (Settings > Accounts Options > Account Settings > Time Zone)
if your index is Germany time zone, and the time saved is “11:01:00 PM”, it will be saved as 11:01:00 PM Germany time. This unless you specify a different time zone in the field definition (at the bottom).
[img]date_field.png[/img]
Getting the date out of the index
If the data for date/time was saved successfully in the index now you just need to recover it in the transport layer, where you can format it.
This is how you call the date field in the transport layer: <search-display-field name="field-name" date-format="date-format-string" />