CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Reykjavik,Iceland
    Posts
    25

    Dates are showing up wrong

    Hello

    When I write the date 8.5.1999 with the following code the day today is written to the Database as 5.8.1999, but should be 8.5.1999 when I read back
    I get 5.8.1999

    After 12th each month then everything is ok, all dates then are written as dd.mm.yyyy

    If bIsStoring Then
    oRec!PatientGUID = m_sPatientGUID
    oRec!StudyTypeID = m_lStudyTypeID
    oRec!Date = m_dtDate
    oRec!Time = m_dtTime
    oRec!RoomID = m_lRoomID
    oRec!FacilityID = m_lFacilityID
    oRec!Status = m_lStatus
    oRec!StudyID = m_lStudyID
    Else
    m_sPatientGUID = oRec!PatientGUID
    m_lStudyTypeID = oRec!StudyTypeID
    m_dtDate = oRec!Date
    m_dtTime = oRec!Time
    m_lRoomID = oRec!RoomID
    m_lFacilityID = oRec!FacilityID
    m_lStatus = oRec!Status
    m_lStudyID = oRec!StudyID
    End If

    Has anyone had similar problems ??

    Thanks


  2. #2
    Join Date
    Jul 1999
    Posts
    35

    Re: Dates are showing up wrong

    well i encounter the prob also.. i change the regional settings in the control panel and it work fine..


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

Featured