Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
I want to fetch the '_ts' value from cosmosDB as a datetime string in my code to view to the user as to show when the data was recorded
          {selectedDate == "aN-aN-NaN" ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextRedItalic>Please Select a date first</WfTextRedItalic>
        </View>
      ) : attendanceRecorded === false && recordedDate !== undefined ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextGreenNormal>
            Attendance was last recorded on {recordedDate}
          </WfTextGreenNormal>
        </View>
      ) : attendanceRecorded === false && recordedDate === undefined ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextYellowItalic>Please Mark Attendance</WfTextYellowItalic>
        </View>
      ) : (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextGreenNormal>
            Attendance recorded for date {selectedDate}
          </WfTextGreenNormal>
        </View>
      )}

As you can see in the above code the 'recordedDate' is what I want to set the value of ts as Im using type script and nodejs

The current items that are fetched or posted from my ClassAttendance Container are :

export declare class ClassAttendance {
id: string;
studentId: string;
classProfileId: string;
dateAttended: string;
studentAttended: "Yes" | "No" | "Partial";
teacherId?: string;
lessonId?: string;
startTime?: string;
endTime?: string;
connectionProblem?: boolean;
constructor(studentId: string, classProfileId: string, dateAttended: string, studentAttended?: "Yes" | "No" | "Partial", teacherId?: string, lessonId?: string, startTime?: string, endTime?: string, connectionProblem?: boolean);

If any more info is needed please let me know Im new to working with this code

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda