How can I assign current date to a Date Field as Default Value in ArcGIS 9.3.1.

3702
2
Jump to solution
09-01-2015 05:23 AM
PerMølsted_Jørgensen
New Contributor

In ArcGIS 9.3.1 I want to assign the current Date as a Default Value to a Datefield. I thought I could use Now() as the Default Value, but it doesn't Work.

I know I have done it before, but I have forgotten how

0 Kudos
1 Solution

Accepted Solutions
PerMølsted_Jørgensen
New Contributor

Hello

I have tried with getdate() in stead, but that didn't Work neither.

But I found out of what I had done earlier.. I did not use ArcCatalog or ArcToolbox to set the Default Date Value.

I used a personel geodatabase (Access), and in Access I could set the Default Value on the Date-field with Now().

And that Works. Now when I open the Feature Class for editing in ArcMap the Default Data (Current Date) is automatically filled in.

View solution in original post

2 Replies
JayantaPoddar
MVP Esteemed Contributor

Try using getdate() function instead of Now()



Think Location
PerMølsted_Jørgensen
New Contributor

Hello

I have tried with getdate() in stead, but that didn't Work neither.

But I found out of what I had done earlier.. I did not use ArcCatalog or ArcToolbox to set the Default Date Value.

I used a personel geodatabase (Access), and in Access I could set the Default Value on the Date-field with Now().

And that Works. Now when I open the Feature Class for editing in ArcMap the Default Data (Current Date) is automatically filled in.