Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6656925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:42:07+00:00 2026-05-26T01:42:07+00:00

In my system the date format is set as YYY-MM-DD format.So my c# application

  • 0

In my system the date format is set as YYY-MM-DD format.So my c# application will take this format when i call DateTime.Now which is fine.

Now in installed my application as service using Install util command.

After running services it gets the date format as dd/mm/yyy.
But i want to save the format as yyy-MM-DD format in database.

Whether i need to change my code or i can set this format in system.

because already the regional settings are done in yyy-mm-dd format only.

This problem happens only when I install my application as a service.

Please help. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:42:08+00:00Added an answer on May 26, 2026 at 1:42 am

    Use the DateTime formatting:

     DateTime.Now.ToString("yyy-MM-dd");
    

    That will get you:

    yyy: The year (same as yyyy), e.g. 2011
    MM: The month number (single digit is formatted with leading zero)
    dd: The day number (single digit is formatted with leading zero)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I get the system date and time in this format: $systime=12/january/2010 10.30
I am trying to set my columns default date time to system datetime. It
System.IO.BinaryReader reads values in a little-endian format. I have a C# application connecting to
I have legacy system where all date fields are maintained in YMD format. Example:
Well Try to Format Ques.I have set of Queries mentioned below.Now i want to
Using VB6 I want to compare the system date, if the exe should not
#include<stdio.h> #include<signal.h> #include<stdlib.h> void handler(int signo) { printf(First statement); system(date); exit(EXIT_SUCCESS); } int main()
I have a system that compares fiscal year up to the current date to
I need to read the system clock (time and date) and display it in
I want to build a Hotel Reservation System. For this system; database is also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.