1 105ben Registered User. Local time Today, 08:57 Joined Feb 2, 2013 Messages 42 Feb 9, 2013 #1 Hello, This date function should return the date and time from exactly one month ago, any ideas as to why it wont?? =DateAdd("mm",-1,Date())+Time()
Hello, This date function should return the date and time from exactly one month ago, any ideas as to why it wont?? =DateAdd("mm",-1,Date())+Time()
John Big Booty AWF VIP Local time Today, 17:57 Joined Aug 29, 2005 Messages 8,262 Feb 9, 2013 #2 Try; Code: =[URL="http://www.techonthenet.com/access/functions/date/dateadd.php"]DateAdd[/URL]("m",-1,[URL="http://www.techonthenet.com/access/functions/date/now.php"]Now()[/URL]) Use the Now() function (which includes a time component) rather than the Date() function (which doesn't). Also month is "m" rather than "mm" Last edited: Feb 9, 2013
Try; Code: =[URL="http://www.techonthenet.com/access/functions/date/dateadd.php"]DateAdd[/URL]("m",-1,[URL="http://www.techonthenet.com/access/functions/date/now.php"]Now()[/URL]) Use the Now() function (which includes a time component) rather than the Date() function (which doesn't). Also month is "m" rather than "mm"
1 105ben Registered User. Local time Today, 08:57 Joined Feb 2, 2013 Messages 42 Feb 9, 2013 #3 Thank you!