81 Posts
squareweb
2 years ago
Topic

Hi,

I've got my date formatted with typography plugin, works perfect. Now I pass this date field by URL calling a contact-FORM.

In the contact-form there is no typography and the date is showed in base-format. How can I re-format the URL-date? 

In the sending list-form I've tried getValue(mydate) and getText(mydate) but both result in same layout.

Get a VIP membership
4229 Posts
Kadministrator
2 years ago
3
Level 1

You can set desired format in the field.

81 Posts
squareweb
2 years ago
2
Level 2

Thanks Klas, it's not clear to me where to do this. I assume I've to apply some formatting like Y M D for instance?

See my field settings below please.

http://squareweb.nl/tmp/sebdateformat.jpg

4229 Posts
Kadministrator
2 years ago
1
Level 3

You cna only do that if you use Calendar field or JForm Calendar field, as you use Text you are limited to the the Mysql Datetime format you use for storage

81 Posts
squareweb
2 years ago
0
Level 4

Thanks again Klas,

This works, switched over to calendar.

more info at: https://www.seblod.com/resources/extensions/archives/seblod-2-x-calendar-field

Get a Book for SEBLOD