• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

Date difference between current date and january 1st of the year in crystal 8.5

Hi there,
I'm trying to write a formula in crystal 8.5 where it calculates the date diff in days between current date and beginning of the year (ie 1/1/current year)
how do I do this?
Will appreciate your help.
thanks
S
0
Sivasan
Asked:
Sivasan
1 Solution
 
mlmccCommented:
Try this

DateDiff('d',Date(Year(CurrentDate),1,1),CurrentDate)

mlmcc
0
 
SivasanAuthor Commented:
Worked great!.thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now