views:

87

answers:

3

Hi, i have created a date time field i made Todays Date as the default value, Then i added it to a page layout and created a page, But the current Date Time is not picking up from the system.

I dont want to give the user to select a Date Time instead it should populated Automatically

is there anyway to acheive this without writing code in code behind files.

A: 

Does [Today] work?

If you have language pack applied to SharePoint, then you must use localized "Today" string.

Janis Veinbergs
Hi Janis, when we use Today - it gives following error "Calculated columns cannot contain volatile functions like Today and Me."It seems today cannot be used as a calculated column function.What we think is having a DATETIME field which will populate the current datetime only which needs to be coming from the system wihtout any coding. Is this possible? After this we can created a calculated text column to show the date time in a format we desire. But we stuck at the first problem.Thanks
Mudith
You can't use TODAY in calculated columns - and the oft repeated fake column trick doesn't work.http://blog.pentalogic.net/2008/11/truth-about-using-today-in-calculated-columns/
Ryan
Without even the fake column trick? How can it doesn't work? It must work: http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/
Janis Veinbergs
If you read the comments in this or any other article mentioning the trick you will see "It works great, Thanks!" then a few days later "Oh - its not working any more". Try it for yourself (but make sure you check again tomorrow). More details on why it doesn't work * http://stackoverflow.com/questions/878744/any-solution-to-the-today-calculated-column-problem-is-sharepoint* http://blog.pentalogic.net/2008/11/truth-about-using-today-in-calculated-columns/* http://blog.pathtosharepoint.com/2008/08/14/calculated-columns-the-useless-today-trick/
Ryan
A: 

This is very similar to this question I think

My answer there gives a few options such as using the built in Created field, using a calendar template, a JavaScript hack and a custom field type.

Ryan
A: 

Guys, fake [Today] trick worked for us - but prob is we only got the date value not datetime.

Janis, is it possible to get date and time both from the fake [today] column trick? pls refer few articles on the same

Mudith
Ryan