Results 1 to 2 of 2

Thread: Assign datevar first of current month [Resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Assign datevar first of current month [Resolved]

    I have a datevar 'firstofmonth' in Crystal Reports. I'm trying to set that variable to be the first of the current month and year. My thinking is something along the lines of: firstday := month(currentdate) & 1 & year(currentdate)

    Anyone know the correct syntax for this?

    Thanks much!
    Last edited by BIGGY; Apr 26th, 2006 at 11:23 AM.

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Re: Assign datevar first of current month

    Resolved: I fgured out

    firstday := date(year(currentdate) , month(currentdate) , 01 );

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width