WebApr 1, 2010 · Crystal 8.5 SQL Server I'm trying to write record selection criteria where I need to always find the first day of the month of currentdate 3 years ago as well as the first day of the month of the currentdate. Examples: Currentdate=1/21/2010 {db.date} in 1/1/2007 to 1/1/2010 Currentdate=4/8/2010 {db.date} in 4/1/2007 to 4/1/2010 Can … http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=7605
SAP Help Portal
WebMay 11, 2012 · Well, the idea is simple! currentdate will give you today's date (5/11/2012). day (currentdate) will give you 11. So, when you do currentdate - day (currentdate), it will subtract 11 days from 5/11/2012 to give you the last day of last month which is 4/30/2012. Add another day and it gives you the 1st day of the following month that is May. WebIf you are looking for the current month you can use: Minimum ( MonthToDate ) This will give you the first day of the current month in any report. Not everyone realizes this but … how ads are personalised
Crystal Reports Formula to get YYYYMM using current date
WebApr 25, 2006 · There are several variations. Here is one: DateAdd ("m",1,minimum (monthtodate))-1. ~Brian. bdreed35 (Programmer) 25 Apr 06 13:06. I think LB meant: dateadd ("m",1,currentdate)-day (currentdate) The other version will not return the correct month end date when the previous month has less days then the current month. ~Brian. WebMay 7, 2012 · In one of my recent projects, I designed a bunch of reports using SAP Crystal Reports 2008 tool. In some of reports, I wanted to have a value like “sysdate”, “the first day of previous month”, or a formula of some kind like CurrentDate() plugged into that parameter as default for user convenience and for report scheduling onto InfoView server. WebJan 7, 2014 · I need to show the current month as a 2 digit field. IE January as 01 February as 02 March as 03 etc until October as 10 November as 11 December as 12. The … how a dsm diagnosis can affect an adolescent