<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to change Date Fields with default Value 01/01/1970</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=30741215" />
  <subtitle>How to change Date Fields with default Value 01/01/1970</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=30741215</id>
  <updated>2026-04-07T19:09:08Z</updated>
  <dc:date>2026-04-07T19:09:08Z</dc:date>
  <entry>
    <title>RE: How to change Date Fields with default Value 01/01/1970</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=30895742" />
    <author>
      <name>Vitaliy Koshelenko</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=30895742</id>
    <updated>2013-10-28T15:30:10Z</updated>
    <published>2013-10-28T15:30:10Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;In create_account.jsp you can see the following code:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Calendar birthday = CalendarFactoryUtil.getCalendar();

birthday.set(Calendar.MONTH, Calendar.JANUARY);
birthday.set(Calendar.DATE, 1);
birthday.set(Calendar.YEAR, 1970);
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;You can create JSP-hook on it, changing this behaviour.&lt;br&gt;&lt;br&gt;&lt;br&gt;Vitaliy&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Vitaliy Koshelenko</dc:creator>
    <dc:date>2013-10-28T15:30:10Z</dc:date>
  </entry>
  <entry>
    <title>How to change Date Fields with default Value 01/01/1970</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=30741214" />
    <author>
      <name>Tobi G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=30741214</id>
    <updated>2013-10-23T11:51:55Z</updated>
    <published>2013-10-23T11:51:55Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;I create a new liferay user only birthday value , but the birthday is save as 01/01/1970. How I can set the value to null ?&lt;br /&gt;&lt;br /&gt;With the back office i can only set a date value and not a &amp;#34;null&amp;#34; value. &lt;br /&gt;&lt;br /&gt;The same situation is for custom fields. I have custom fields with date that are optional but they was set with time value 0 and not with null. With back office I can only set a date value also.&lt;br /&gt;&lt;br /&gt;Is it possible to set birthday or date custom fields with a null value? And also to set a null value with back office of liferay? Because I can not different between a birthday that is null with 01/01/1970 and a person that have really set the birthsday value to 01/01/1970.&lt;br /&gt;&lt;br /&gt;Thank you for your help.</summary>
    <dc:creator>Tobi G</dc:creator>
    <dc:date>2013-10-23T11:51:55Z</dc:date>
  </entry>
</feed>
