aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-01-27 14:03:31 -0500
committerGitHub <noreply@github.com>2021-01-27 14:03:31 -0500
commit3f133f27964439f6ef5caab41d7801bbef498294 (patch)
tree67fb853bcac9a9a0645e6298674b057af0aacffb /src
parent6cd49ed14f99fe953026e54969abc6232f3aec57 (diff)
parent3a68870bb64f49041e8412bd2b27ba52d58775d5 (diff)
Merge pull request #201 from tbhatia2299/TMA-510-BIRTHDAY-FIELD
TMA-510-Birthday-Field
Diffstat (limited to 'src')
-rw-r--r--src/components/common/TaggDatePicker.tsx2
-rw-r--r--src/components/onboarding/BirthDatePicker.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/common/TaggDatePicker.tsx b/src/components/common/TaggDatePicker.tsx
index 059bf620..f929b41d 100644
--- a/src/components/common/TaggDatePicker.tsx
+++ b/src/components/common/TaggDatePicker.tsx
@@ -12,7 +12,7 @@ interface TaggDatePickerProps {
const TaggDatePicker: React.FC<TaggDatePickerProps> = (props) => {
const [date, setDate] = useState(
props.date
- ? new Date(moment(props.date).add(1, 'day').format('YYYY-MM-DD'))
+ ? new Date(moment(props.date).add(1, 'day').format('MM-DD-YYYY'))
: undefined,
);
return (
diff --git a/src/components/onboarding/BirthDatePicker.tsx b/src/components/onboarding/BirthDatePicker.tsx
index 0fc597c3..6bef5798 100644
--- a/src/components/onboarding/BirthDatePicker.tsx
+++ b/src/components/onboarding/BirthDatePicker.tsx
@@ -45,7 +45,7 @@ const BirthDatePicker = React.forwardRef(
ref={ref}
{...props}>
{(updated || props.showPresetdate) && date
- ? moment(date).format('YYYY-MM-DD')
+ ? moment(date).format('MM-DD-YYYY')
: 'Date of Birth'}
</Text>
</TouchableOpacity>