Date Format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lewe22
    New Member
    • Sep 2007
    • 94

    #1

    Date Format

    How can i display the date of the the first day in the current month on a form?

    Eg:
    Code:
    Todays Date  10/06/2008         
    New Date     01/06/2008
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    This works on machines where the Regional Settings dispaly dates as mm/dd/yyyy. I assume it'll work for you if your Regional Settings normally display dates as you have displayed them in your example, dd/mm/yyyy.
    NewDate = DateSerial(Year (Date), Month(Date), 1)

    Linq ;0)>

    Comment

    • Lewe22
      New Member
      • Sep 2007
      • 94

      #3
      Thanks, that has worked for the display purposes on my form!

      Comment

      Working...