Default date value

Two similar code lines shows different dates, what goes wrong?
the first code below shows for ‘begindag’ a correct date: 2022-10-24

	'Periode': collection ['tijdlijn'] {
		'tijdlijn': text @default: auto-increment || "01"
		'vandaag': number 'datum' @default: from @date-time 'datum en tijd' now
		'begindag':  number 'datum' = .'vandaag' 
    } 

the second code below shows for ‘begindag’ a different date: -4712-01-06

	'vandaag': number 'datum' @default: from @date-time 'datum en tijd' now
	'Periode': collection ['tijdlijn'] {
		'tijdlijn': text @default: auto-increment || "01"
		'begindag':  number 'datum' = ^ .'vandaag' 
    }

The @default: from @date-time 'datum en tijd' now is a GUI annotation which only the webclient can evaluate. The migration engine/datastore does not use it. For an initial value other than 0 (-4712-01-06), you have to modify your migration.alan file.

this is good to know, thanks