Getting date and time in schema | Community
Skip to main content
Level 3
January 18, 2019
Solved

Getting date and time in schema

  • January 18, 2019
  • 2 replies
  • 3700 views

Hi,

consider i have created a web application and a schema for it.

Web page have name, age and email and a submit button. when he fills the form and submit it, data is getting added in schema successfully.

But in schema i want an additional column like "registered time".

In that, schema automatically wants to take the date and time of the data entered into data schema.

is that possible? If so what i need to do to achieve it?

consider schema name as "par:registration" and column i want is "registered time".

<attribute name="registered time" label="Registered time" type="datetime"/>

Thanks in advance,

ParthaSarathy 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

Add default="GetDate()" to your attribute.

Thanks,

-Jon

2 replies

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
January 18, 2019

Hi,

Add default="GetDate()" to your attribute.

Thanks,

-Jon

Level 4
December 7, 2023

Hi @jonathon_wodnicki 

Added default="GetDate()"

But its not populating auto date value in the schema 

couldn you please help on that?

ParthaSarathy
Community Advisor
Community Advisor
December 7, 2023

Hi @vani97 ,

Change type as datetime.

<attribute default="GetDate()" label="Order date" name="orderDate" type="datetime"/>
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Level 4
December 7, 2023

Hi @partha18 
Was that resolved How you updated the date value in schema 

Could you please help on that?