Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Switching text field to date field

Topic Labels: Scripting extentions
165 0
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m trying to modify an existing piece of code I got from a template. I need to create a project date along with the project name, but the code as is creates the project date as a text field. I know it’s an issue with the output.markdown or the input.textAsync, but there’s no input.dateAsync or something like that. How can a make this output in a Date field? Thanks!!!

// pick tables from your base here
let projects = base.getTable('Competitions');
let tasks = base.getTable('Tasks');

// prompt the user to pick a template for our project
output.markdown('# New project');
let name = await input.textAsync('Project name');

// prompt the user to pick a date for our project
output.markdown('# Project date');
let date = await input.textAsync('Project date');
0 Replies 0