Setting file creation date to year 1976 Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How do I get the path of the assembly the code is in?How to create Excel (.XLS and .XLSX) file in C# without installing Ms Office?How do I format a Microsoft JSON date?Calculate difference between two dates (number of days)?Entity Framework TimeoutsParse date exact in c# with variable year lengthCompare DateTime without yearWhy not inherit from List<T>?How to get string value from date time picker specific date settingSetting file creation date to January 1, 1976 but nothing is working unless year is after 1980
What is the ongoing value of the Kanban board to the developers as opposed to management
Protagonist's race is hidden - should I reveal it?
How would this chord from "Rocket Man" be analyzed?
How to translate "red flag" into Spanish?
Refugee travel document from Spain to US
Raising a bilingual kid. When should we introduce the majority language?
As an international instructor, should I openly talk about my accent?
What is the term for a person whose job is to place products on shelves in stores?
Dynamic Return Type
"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?
Is a 5 watt UHF/VHF handheld considered QRP?
How long after the last departure shall the airport stay open for an emergency return?
Does Mathematica have an implementation of the Poisson Binomial Distribution?
Did the Roman Empire have Penal Colonies?
Mistake in years of experience in resume?
Retract an already submitted recommendation letter (written for an undergrad student)
How to keep bees out of canned beverages?
How to find the right literary agent in the USA?
Do I need to protect SFP ports and optics from dust/contaminants? If so, how?
Why didn't the Space Shuttle bounce back into space many times as possible so that it loose lot of kinetic energy over there?
What if Force was not Mass times Acceleration?
Putting Ant-Man on house arrest
Check if a string is entirely made of the same substring
A Paper Record is What I Hamper
Setting file creation date to year 1976
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How do I get the path of the assembly the code is in?How to create Excel (.XLS and .XLSX) file in C# without installing Ms Office?How do I format a Microsoft JSON date?Calculate difference between two dates (number of days)?Entity Framework TimeoutsParse date exact in c# with variable year lengthCompare DateTime without yearWhy not inherit from List<T>?How to get string value from date time picker specific date settingSetting file creation date to January 1, 1976 but nothing is working unless year is after 1980
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
// The time must be added below for 01/01/1980 to work!
String NewDateTime = "01/01/" + strTagLibFile.Tag.Year.ToString() + " 12:00:01 AM";
This code was given to me by my instructor. So I'm currently trying to set the creation date of the file to January 1 and then the year associated with the file. The year 1976 seems to be a problem. My professor says you have to use this format to get it to work but it is not working for me? Any suggestions?
c# asp.net
|
show 2 more comments
// The time must be added below for 01/01/1980 to work!
String NewDateTime = "01/01/" + strTagLibFile.Tag.Year.ToString() + " 12:00:01 AM";
This code was given to me by my instructor. So I'm currently trying to set the creation date of the file to January 1 and then the year associated with the file. The year 1976 seems to be a problem. My professor says you have to use this format to get it to work but it is not working for me? Any suggestions?
c# asp.net
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
1
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28
|
show 2 more comments
// The time must be added below for 01/01/1980 to work!
String NewDateTime = "01/01/" + strTagLibFile.Tag.Year.ToString() + " 12:00:01 AM";
This code was given to me by my instructor. So I'm currently trying to set the creation date of the file to January 1 and then the year associated with the file. The year 1976 seems to be a problem. My professor says you have to use this format to get it to work but it is not working for me? Any suggestions?
c# asp.net
// The time must be added below for 01/01/1980 to work!
String NewDateTime = "01/01/" + strTagLibFile.Tag.Year.ToString() + " 12:00:01 AM";
This code was given to me by my instructor. So I'm currently trying to set the creation date of the file to January 1 and then the year associated with the file. The year 1976 seems to be a problem. My professor says you have to use this format to get it to work but it is not working for me? Any suggestions?
c# asp.net
c# asp.net
asked Mar 9 at 6:05
Isiah JonesIsiah Jones
137
137
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
1
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28
|
show 2 more comments
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
1
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
1
1
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074511%2fsetting-file-creation-date-to-year-1976%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074511%2fsetting-file-creation-date-to-year-1976%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@er-sho Its third party meta data library.
– Isiah Jones
Mar 9 at 6:09
"Year 1976 seems to be a problem", Is that you are able to set other years properly? and what is the value you are getting from strTagLibFile.Tag.Year
– G_S
Mar 9 at 6:25
@G_S The value is stored correctly. Windows file explorer is not recognizing dates before 1980.
– Isiah Jones
Mar 9 at 6:27
1
In that case, you need to provide much more context. All you're doing here is concatenating strings.
– madreflection
Mar 9 at 6:27
You are just creating a string here. That said, if you are getting StrTagLibFile.Tag.Year properly, then your string works fine. If not, we need more details on the meta data library
– G_S
Mar 9 at 6:28