Skip to main content
Level 3
Jan 18, 2019 10:55 AM UTC
Solved

Getting date and time in schema

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.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Jan 18, 2019 9:29 PM UTC

Hi,

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

Thanks,

-Jon

5 replies

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
Jan 18, 2019 9:29 PM UTC

Hi,

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

Thanks,

-Jon

Translate
Level 4
Dec 7, 2023 7:53 AM UTC

Hi @jonathon_wodnicki 

Added default="GetDate()"

But its not populating auto date value in the schema 

couldn you please help on that?

Translate
ParthaSarathy
Community Advisor
Community Advisor
Dec 7, 2023 8:13 AM UTC

Hi @vani97 ,

Change type as datetime.

<attribute default="GetDate()" label="Order date" name="orderDate" type="datetime"/>
Translate
~  ParthaSarathy S
Level 4
Dec 7, 2023 8:39 AM UTC

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

Could you please help on that?

Translate