Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

date/time format

Discussion in 'Information Technology' started by Ray, Jul 28, 2006.

  1. Ray

    Ray
    Expand Collapse
    Guest

    I'm trying to create a date function where the output would be in the format:
    dd-mmm-yyyy. In a previous table I had created(in a different database,
    using the same version of ACCESS) the Medium date format (from the drop down
    list) is in the above format. However, in a new database I am creating the
    Medium date format from the dropdown list is now in the form: dd-mmm-yy.
    I've tried using 99\->L<LL\-0000;0;_ as my input mask (which is what I have
    for my earlier database that gives me the medium date I am looking for). Why
    is the medium date format from the dropdown list different for my new
    database eventhough I am using the same version of ACCESS. Am I doing
    something wrong? Thanks.

    Ray
     
  2. Loading...

    Similar Threads Forum Date
    India Indian ‘Journalist’ Slams Gurbaksh Singh Than Admits to Receiving Information from ‘Agencies’ Breaking News Dec 27, 2013
    Opinion West Punjab : Information Pool and Pictures Punjab, Punjabi, Punjabiyat Nov 18, 2013
    When Turban Turns Messenger Diaspora Finds Interesting Ways to Spread Information About Sikhi Sikh Youth Nov 10, 2013
    Story of Transformation Sikh Rehat Maryada Jul 27, 2012
    Sikhism Benti Chaupai - Keertan Format Videos Feb 11, 2012

  3. Jerry Whittle

    Jerry Whittle
    Expand Collapse
    Guest

    Input mask has nothing to do with the output format of a date. Access
    actually stored dates as a number and you must define how you want to see the
    date presented in forms, reports, and queries.

    For example today is 38887 which is that many days from 30 December 1899.
    You might type in 19-June-2006 but Access stores it as 38887. The date and
    time as I type this is: 38887.614224537

    To see the date presented in a particular way in a form, report, or query,
    use the Format function:
    Format(Now(),"dd-mmm-yyyy")

    The way something like Medium date looks is defined by the Regional Settings
    of the computer and not really Access at all. Are you using different
    computers for the different databases?

    --
    Jerry Whittle
    Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


    "Ray" wrote:

    > I'm trying to create a date function where the output would be in the format:
    > dd-mmm-yyyy. In a previous table I had created(in a different database,
    > using the same version of ACCESS) the Medium date format (from the drop down
    > list) is in the above format. However, in a new database I am creating the
    > Medium date format from the dropdown list is now in the form: dd-mmm-yy.
    > I've tried using 99\->L<LL\-0000;0;_ as my input mask (which is what I have
    > for my earlier database that gives me the medium date I am looking for). Why
    > is the medium date format from the dropdown list different for my new
    > database eventhough I am using the same version of ACCESS. Am I doing
    > something wrong? Thanks.
    >
    > Ray
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page